Skip to main content
Module

x/oak/httpError.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@v10.6.0/httpError.ts";

Create a specific class of HttpError based on the status, which defaults to 500 Internal Server Error.

Parameters

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