import { HttpException } from "https://deno.land/x/dactyl@v0.1.0-alpha/HttpException.ts";
General purpose HttpException export class, can be raised at any stage of the request lifecycle, resulting in oak appropriately handling the error. Expected JSON payload is:
{
"error": "HttpException.error",
"status": "HttpException.status"
}
Constructors
new
HttpException(status: Status, error: string | undefined)Properties
private
status: Status