Skip to main content
Module

x/https_status_codes/mod.ts

A port of the http-status-codes npm library for deno.
Latest
import * as httpsStatusCodes from "https://deno.land/x/https_status_codes@v1.2.0/mod.ts";

Functions

Returns the reason phrase for the given status code. If the given status code does not exist, an error is thrown.

Returns the status code for the given reason phrase. If the given reason phrase does not exist, undefined is returned.