Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Go to Latest
variable oak.httpErrors
import { oak } from "https://deno.land/x/hex@0.6.3/src/fw/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>