logger.info("Handling error response " + httpConn.getResponseCode());
switch (httpConn.getResponseCode()) {
case HttpURLConnection.HTTP_NOT_FOUND:
throw new ResourceNotFoundException(httpConn);
case HttpURLConnection.HTTP_BAD_GATEWAY:
throw new ResourceNotFoundException(httpConn);
case HttpURLConnection.HTTP_FORBIDDEN:
throw new AuthenticationException(httpConn);
default: