Skip to main content
Module

x/acorn/deps.ts>createHttpError

A focused RESTful server framework for Deno 🌰🦕
Go to Latest
function createHttpError
import { createHttpError } from "https://deno.land/x/acorn@0.1.0/deps.ts";

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

Parameters

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