Skip to main content
Module

x/dext/deps/mod.ts>oak.httpErrors

The Preact Framework for Deno
Latest
variable oak.httpErrors
import { oak } from "https://deno.land/x/dext@0.10.5/deps/mod.ts";
const { httpErrors } = oak;

An object which contains an individual HTTP Error for each HTTP status error code (4XX and 5XX). When errors are raised related to a particular HTTP status code, they will be of the appropriate instance located on this object. Also, context's .throw() will throw errors based on the passed status code.

type

Record<keyof errorStatusMap, HttpError>