diff --git a/doc/api/http2.md b/doc/api/http2.md index f180a7d297c372..28e915519258f1 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -3145,7 +3145,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