Skip to main content
Module

x/oak/httpError.ts

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

Classes

The base class for individual classes of HTTP errors.

Variables

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.

Functions

Create a specific class of HttpError based on the status, which defaults to 500 Internal Server Error.