Skip to Content
Drash v3 is in beta. APIs may change.

StatusName

import { StatusName } from "@drashland/drash/core/http/response/StatusName.js"; StatusName.NotFound; // "NotFound"

The status names themselves, each mapped to its own string:

const StatusName = { Continue: "Continue", SwitchingProtocols: "SwitchingProtocols", // ... 60 more } as const;

62 entries. Because it is declared as const, it is what makes ResponseStatusName a union of string literals rather than plain string — which in turn is what keys Status, StatusCode, and StatusDescription, so all four stay in step.

Not re-exported from the HTTP module; see Status.

Last updated on