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:"
+ getContent(httpResponse));
}
if (responseCode == HttpStatus.SC_UNPROCESSABLE_ENTITY) {