x/oak/deps.ts

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

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>[src]