Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fsrouter/deps.ts>http.createHttpError

A file system based router for Deno.
Go to Latest
function http.createHttpError
import { http } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { createHttpError } = http;

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

Parameters

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