Skip to main content
Module

x/attain/core/httpError.ts

Deno API middleware Server
Go to Latest
import * as attain from "https://deno.land/x/attain@1.1.0/core/httpError.ts";

Classes

A 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.