code: protected void handleError(URI requestUri, HttpMethod requestMethod, int statusCode, String statusMessage,
              ByteSource errorBody) throws RestEndpointIOException {
          throw new RestEndpointException(requestUri, requestMethod, statusCode, statusMessage, errorBody);
      }
docs: Handler methods for HTTP client errors
  
  @param requestUri    - Request URI
  @param requestMethod - Request HTTP Method
  @param statusCode    - HTTP status code
  @param statusMessage - HTTP status message
  @param errorBody     - HTTP response body