Deprecated
(will be removed in 0.207.0) Use custom error classes instead.
The base class that all derivative HTTP extend, providing a status
and an
expose
property.
import { HttpError } from "https://deno.land/std@0.205.0/http/http_errors.ts";
Constructors
new
HttpError(message?, options?: HttpErrorOptions)