diff --git a/doc/api/http2.md b/doc/api/http2.md index 138b9cf8b66d1c..c7bd70d6570ecc 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -3144,7 +3144,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