Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cav/test/test_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.24/test/test_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>