Module

std/http/mod.ts>STATUS_TEXT

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

Map from status code to status text.

import {
  Status,
  STATUS_TEXT,
} from "https://deno.land/std@0.122.0/http/http_status.ts";

console.log(Status.NotFound); //=> 404
console.log(STATUS_TEXT.get(Status.NotFound)); //=> "Not Found"

type

Map<Status, string>