import { assert } from "https://dotland.deno.dev/x/oak_commons@1.0.0/assert.ts";
A standard assert function, but if the condition is not met, it will throw
an HttpError
. The error status and text can be changed, but defaults to
400 Bad Request
.
Parameters
optional
errorStatus: ErrorStatus = [UNSUPPORTED]optional
options: HttpErrorOptions