Skip to main content
Module

x/acorn/deps.ts>errors

A focused RESTful server framework for Deno 🌰🦕
Go to Latest
variable errors
import { errors } from "https://deno.land/x/acorn@0.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@0.224.0/http/http_errors.ts";

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

type

Record<ErrorStatusKeys, HttpError>