Module

x/oak/deps.ts>errors

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
variable errors
import { errors } from "https://dotland.deno.dev/x/oak@v11.1.0/deps.ts";

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

Example

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

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

type

Record<ErrorStatusKeys, HttpError>