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

StatusDescription

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

Name to the reason phrase.

StatusDescription: Record<ResponseStatusName, string>

62 entries, keyed by StatusName. Its values are the description half of every Status entry — reach for this one when you want the phrase alone, such as setting Response.statusText directly.

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

Last updated on