Module

std/http/mod.ts>STATUS_TEXT

Deno standard library
Go to Latest
variable STATUS_TEXT
import { STATUS_TEXT } from "https://dotland.deno.dev/std@0.170.0/http/mod.ts";

A record of all the status codes text.

type

Readonly<Record<Status, string>>
import STATUS_TEXT
import { STATUS_TEXT } from "https://dotland.deno.dev/std@0.170.0/http/mod.ts";

A collection of HTTP errors and utilities.

The export errors contains an individual class that extends HttpError which makes handling HTTP errors in a structured way.

The function createHttpError provides a way to create instances of errors in a factory pattern.

The function isHttpError is a type guard that will narrow a value to an HttpError instance.