code: public static HttpResponse toHttpResponse(final int streamId,
                                                final Http2Headers http2Headers,
                                                final boolean validateHttpHeaders) throws Http2Exception {
          final HttpResponseStatus status = parseStatus(http2Headers.status());
          // HTTP/2 does not define a way to carry the version or reason phrase that is included in an
          // HTTP/1.1 status line.
          final HttpResponse msg = new DefaultHttpResponse(HttpVersion.HTTP_1_1, status, validateHttpHeaders);
          try {
              addHttp2ToHttpHeaders(streamId, http2Headers, msg.headers(), msg.protocolVersion(), false, true);
          } catch (final Http2Exception e) {
              throw e;
          } catch (final Throwable t) {
              throw streamError(streamId, PROTOCOL_ERROR, t, "HTTP/2 to HTTP/1.x headers conversion error");
          }
          return msg;
      }
docs: Create a new object to contain the response data.
  
  @param streamId The stream associated with the response
  @param http2Headers The initial set of HTTP/2 headers to create the response with
  @param validateHttpHeaders <ul>
  <li>{@code true} to validate HTTP headers in the http-codec</li>
  <li>{@code false} not to validate HTTP headers in the http-codec</li>
  </ul>
  @return A new response object which represents headers for a chunked response
  @throws Http2Exception see {@link #addHttp2ToHttpHeaders(int, Http2Headers,
  HttpHeaders, HttpVersion, boolean, boolean)}