code: public static void close(final HttpResponse response) {
          if (response instanceof CloseableHttpResponse) {
              val closeableHttpResponse = (CloseableHttpResponse) response;
              try {
                  closeableHttpResponse.close();
              } catch (final IOException e) {
                  LOGGER.error(e.getMessage(), e);
              }
          }
      }
docs: Close the response.
  
  @param response the response to close