code: private void logResponse(URI uri, Response response)
      {
          if(logger.isLoggable(Level.FINE))
              logger.fine(uri.toString()+" => "+response.getStatus());
          if(response.getStatus() > 300)
              logger.warning(response.toString());
      }
docs: Log a HTTP error response.
  @param uri The URI used for the HTTP call
  @param response The HTTP call response