Skip to main content
Module

x/oak/mod.ts>createHttpError

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function createHttpError
import { createHttpError } from "https://deno.land/x/oak@v11.1.0/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