If an HTTP/2 server responds with an error in the :status header, that is supposed to be surfaced but the code that performs that action is in the trailers handling code. If there is a body and no trailers, the trailers handling code is never called, and instead the more general error "Received RST_STREAM with code 0" is surfaced.
If an HTTP/2 server responds with an error in the
:statusheader, that is supposed to be surfaced but the code that performs that action is in the trailers handling code. If there is a body and no trailers, the trailers handling code is never called, and instead the more general error "Received RST_STREAM with code 0" is surfaced.