Skip to main content
Module

x/superdeno/deps.ts>STATUS_TEXT

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
variable STATUS_TEXT
import { STATUS_TEXT } from "https://deno.land/x/superdeno@4.8.0/deps.ts";

Map from status code to status text.

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

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

type

Map<Status, string>