Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/superdeno/test/deps.ts>Oak.httpErrors

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
variable Oak.httpErrors
import { Oak } from "https://deno.land/x/superdeno@4.8.0/test/deps.ts";
const { httpErrors } = Oak;

An object which contains an individual HTTP Error for each HTTP status error code (4XX and 5XX). When errors are raised related to a particular HTTP status code, they will be of the appropriate instance located on this object. Also, context's .throw() will throw errors based on the passed status code.

type

Record<keyof errorStatusMap, HttpError>