@Override
public BasicHttpResponse processContent(BasicHttpResponse httpResponse)
throws RedmineException {
final int responseCode = httpResponse.getResponseCode();
if (responseCode == HttpStatus.SC_UNAUTHORIZED) {
throw new RedmineAuthenticationException(
"Authorization error. Please check if you provided a valid API access key or Login and Password and REST API service is enabled on the server.");
}
if (responseCode == HttpStatus.SC_FORBIDDEN) {
throw new NotAuthorizedException(
"Forbidden. Please check the user has proper permissions.");