Skip to content

Http1RejectStatus

Http1RejectStatus = 400 | 431 | 501 | 505

Defined in: packages/format-http/src/h1/http1-message-error.ts:9

The status code a server should answer with when a message is rejected.

  • 400 — malformed syntax, or framing that cannot be trusted.
  • 431 — the head (or a trailer section) exceeds the configured limit.
  • 501 — a transfer coding other than chunked.
  • 505 — an HTTP major version other than 1.