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.");
}
if (responseCode == HttpStatus.SC_NOT_FOUND) {
throw new NotFoundException(
"Server returned '404 not found'. response body:"