Skip to main content
Module

x/status/mod.ts>status

🗿 HTTP status utility for Deno. Based on Java Apache HttpStatus
Latest
function status
import { status } from "https://deno.land/x/status@0.1.0/mod.ts";

Get the status code.

Given a number, this will throw if it is not a known status code, otherwise the code will be returned. Given a string, the string will be parsed for a number and return the code if valid, otherwise will lookup the code assuming this is the status message.