return supplier.get(); } else if (statusCode == HttpStatus.SC_BAD_REQUEST) { throw new ClientValidationException(getMessage(response)); } else if (statusCode == HttpStatus.SC_UNAUTHORIZED) { throw new ClientCannotLoginException(request); throw new ClientForbiddenException(request); } else if (statusCode == HttpStatus.SC_NOT_FOUND) { throw new ClientNotFoundException(getMessage(response)); } else if (statusCode == HttpStatus.SC_NO_CONTENT) { return null; } else if (statusCode == HttpStatus.SC_INTERNAL_SERVER_ERROR) { String content = getMessage(response); if (StringUtils.isNotBlank(content)) { throw new ClientMessageException(content);
return supplier.get(); } else if (statusCode == HttpStatus.SC_BAD_REQUEST) { throw new ClientValidationException(getMessage(response)); } else if (statusCode == HttpStatus.SC_UNAUTHORIZED) { throw new ClientCannotLoginException(request); throw new ClientForbiddenException(request); } else if (statusCode == HttpStatus.SC_NOT_FOUND) { throw new ClientNotFoundException(getMessage(response)); } else if (statusCode == HttpStatus.SC_NO_CONTENT) { return null; } else if (statusCode == HttpStatus.SC_INTERNAL_SERVER_ERROR) { String content = getMessage(response); if (StringUtils.isNotBlank(content)) { throw new ClientMessageException(content);