Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function createHttpError
import { createHttpError } from "https://deno.land/x/frugal@0.5.0/docs/dep/std/http.ts";

Create an instance of an HttpError based on the status code provided.

Parameters

optional
status: ErrorStatus = [UNSUPPORTED]
optional
message: string
optional
options: HttpErrorOptions