code: private static boolean hasResponseBody(int requestMethod, int responseCode) {
          return requestMethod != Request.Method.HEAD
              && !(HttpStatus.SC_CONTINUE <= responseCode && responseCode < HttpStatus.SC_OK)
              && responseCode != HttpStatus.SC_NO_CONTENT
              && responseCode != HttpStatus.SC_NOT_MODIFIED;
      }
docs: Checks if a response message contains a body.
  @see <a href="https://tools.ietf.org/html/rfc7230#section-3.3">RFC 7230 section 3.3</a>
  @param requestMethod request method
  @param responseCode response status code
  @return whether the response has a body