Skip to main content
Module

x/xserver/deps.ts>STATUS_TEXT

X Server with session and spa plugins
Go to Latest
variable STATUS_TEXT
import { STATUS_TEXT } from "https://deno.land/x/xserver@0.2.1/deps.ts";

Map from status code to status text.

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

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

type

Map<Status, string>