docs: public static boolean hasBody(Response response) {
      // HEAD requests never yield a body regardless of the response headers.
      if (response.request().method().equals("HEAD")) {
        return false;
      }
  
      int responseCode = response.code();
      if ((responseCode < HTTP_CONTINUE || responseCode >= 200)
          && responseCode != HTTP_NO_CONTENT
          && responseCode != HTTP_NOT_MODIFIED) {
        return true;
      }
  
      // If the Content-Length or Transfer-Encoding headers disagree with the response code, the
      // response is malformed. For best compatibility, we honor the headers.
      if (contentLength(response) != -1
          || "chunked".equalsIgnoreCase(response.header("Transfer-Encoding"))) {
        return true;
      }
  
      return false;
    }