Skip to main content
Module

x/cav/deps.ts>http.STATUS_TEXT

A server framework for Deno
Go to Latest
variable http.STATUS_TEXT
import { http } from "https://deno.land/x/cav@0.0.21/deps.ts";
const { STATUS_TEXT } = http;

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>