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.3.0/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