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

x/oak_nest/example/deps.ts>STATUS_TEXT

Refer to nestjs to realize some common functions for Deno
Go to Latest
variable STATUS_TEXT
import { STATUS_TEXT } from "https://deno.land/x/oak_nest@v1.14.1/example/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>