x/oak/mod.ts

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

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]