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

x/superdeno/test/deps.ts>Oak.STATUS_TEXT

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

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>