code: public static void handleError(HttpResponse response) throws ParseException, IOException {
          log.debug("{}", response.getStatusLine().toString());
          HttpEntity entity = response.getEntity();
          if (entity != null) {
              log.debug("{}", EntityUtils.toString(entity));
          }
      }
docs: Logs details about the request error.
  
  @param response
  http response
  @throws IOException
  on IO error
  @throws ParseException
  on parse error