Skip to content

Http2ErrorCode

Defined in: packages/format-http/src/h2/http2-error.ts:2

HTTP/2 error codes (RFC 9113 §7), as carried by RST_STREAM and GOAWAY.

CANCEL: 8

Defined in: packages/format-http/src/h2/http2-error.ts:11


COMPRESSION_ERROR: 9

Defined in: packages/format-http/src/h2/http2-error.ts:12


CONNECT_ERROR: 10

Defined in: packages/format-http/src/h2/http2-error.ts:13


ENHANCE_YOUR_CALM: 11

Defined in: packages/format-http/src/h2/http2-error.ts:14


FLOW_CONTROL_ERROR: 3

Defined in: packages/format-http/src/h2/http2-error.ts:6


FRAME_SIZE_ERROR: 6

Defined in: packages/format-http/src/h2/http2-error.ts:9


HTTP_1_1_REQUIRED: 13

Defined in: packages/format-http/src/h2/http2-error.ts:16


INADEQUATE_SECURITY: 12

Defined in: packages/format-http/src/h2/http2-error.ts:15


INTERNAL_ERROR: 2

Defined in: packages/format-http/src/h2/http2-error.ts:5


NO_ERROR: 0

Defined in: packages/format-http/src/h2/http2-error.ts:3


PROTOCOL_ERROR: 1

Defined in: packages/format-http/src/h2/http2-error.ts:4


REFUSED_STREAM: 7

Defined in: packages/format-http/src/h2/http2-error.ts:10


SETTINGS_TIMEOUT: 4

Defined in: packages/format-http/src/h2/http2-error.ts:7


STREAM_CLOSED: 5

Defined in: packages/format-http/src/h2/http2-error.ts:8