Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/http_error/mod.ts

An error class for HTTP requests.
Latest
import * as httpError from "https://deno.land/x/http_error@0.7.0/mod.ts";

Classes

Converts errors into error responses that the client can convert back into HttpErrors.

An error for an HTTP request.

Functions

Check if the response is an error response that can be converted to an HttpError.

Checks if the value as an HttpError.

Converts HttpError arguments to an options object. Prioritizing status and message arguments over status and message options.

Interfaces

A format for sharing errors with the browser. With a consistent format for error responses, the client can convert them back into an HttpErrors.

Options for initializing an HttpError.