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@v11.1.0/mod.ts";

A map of HttpErrors that are unique instances for each HTTP error status code.

Example

import { errors } from "https://deno.land/std@0.221.0/http/http_errors.ts";

throw new errors.InternalServerError("Ooops!");

type

Record<ErrorStatusKeys, HttpError>