import { errors } from "https://dotland.deno.dev/std@0.181.0/http/mod.ts";
A namespace that contains each error constructor. Each error extends
HTTPError
and provides .status
and .expose
properties, where the
.status
will be an error Status
value and .expose
indicates if
information, like a stack trace, should be shared in the response.
By default, .expose
is set to false in server errors, and true for client
errors.
type
Record<ErrorStatusKeys, HttpError>