Skip to content

getHttpStatusReason

getHttpStatusReason(status): string

Defined in: packages/net-http/src/message/http-status-reason.ts:74

The registered reason phrase for a status code, as HTTP/1.x sends it in the status line. HTTP/2 and HTTP/3 have no reason phrase at all.

number

string

The phrase, or "" for an unregistered code — an empty phrase is valid on the wire.