Skip to main content
Http2Stream.rstCode - node__http2.d.ts - Node documentation
property Http2Stream.rstCode

Usage in Deno

```typescript import { type Http2Stream } from "node:node__http2.d.ts"; ```
Set to the `RST_STREAM` `error code` reported when the `Http2Stream` is destroyed after either receiving an `RST_STREAM` frame from the connected peer, calling `http2stream.close()`, or `http2stream.destroy()`. Will be `undefined` if the `Http2Stream` has not been closed.

Type

number