code: private boolean hasBody(Response response) {
          int status;
  
          status = response.getStatusLine().code;
          if ("HEAD".equals(method)) {
              return false;
          } else {
              return status >= StatusCode.OK && status != StatusCode.NO_CONTENT && status != StatusCode.NOT_MODIFIED && status != StatusCode.RESET_CONTENT;
          }
      }
docs: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.3