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

x/hex/src/service/deps.ts>oak.httpErrors

An ecosystem delivering practices, philosophy and portability.
Go to Latest
variable oak.httpErrors
import { oak } from "https://deno.land/x/hex@0.5.15/src/service/deps.ts";
const { httpErrors } = oak;

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

Example

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

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

type

Record<ErrorStatusKeys, HttpError>