diff --git a/doc/api/http2.md b/doc/api/http2.md index 3e1850a6790b94..9f702de02b03cf 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -3143,7 +3143,7 @@ added: v8.4.0 Call [`http2stream.pushStream()`][] with the given headers, and wraps the given newly created [`Http2Stream`] on `Http2ServerResponse`. -The callback will be called with an error with code `ERR_HTTP2_STREAM_CLOSED` +The callback will be called with an error with code `ERR_HTTP2_INVALID_STREAM` if the stream is closed. ## Collecting HTTP/2 Performance Metrics