Skip to main content
Module

x/oak/mod.ts>httpErrors

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
variable httpErrors
import { httpErrors } from "https://deno.land/x/oak@v10.6.0/mod.ts";

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>