@Override
      public void handleError(final ClientHttpResponse response) throws IOException {
        String body = IOUtils.toString(response.getBody(), StandardCharsets.UTF_8);
        final String message = String.format("The HTTP request failed with: %1$d - %2$s.",
            response.getRawStatusCode(), body);

        if (response.getRawStatusCode() == 401) {
          throw new AuthenticationFailedException(message);
        } else if (response.getRawStatusCode() == 403) {
          throw new NotAuthorizedException(message);
        } else {
          throw new RuntimeException(message);
        }
      }
The HttpRequester class is a Adapter/facade for the Spring RestTemplate class for abstracting
HTTP requests and operations.
<p>

@see org.springframework.http.client.SimpleClientHttpRequestFactory
@see org.springframework.web.client.RestTemplate
@since GemFire 8.0
geode-gfsh/src/main/java/org/apache/geode/management/internal/web/http/support/HttpRequester.java