Skip to main content
Module

std/http/mod.ts>createHttpError

Deno standard library
Go to Latest
function createHttpError
import { createHttpError } from "https://deno.land/std@0.151.0/http/mod.ts";

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

Parameters

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