Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.createHttpError

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Go to Latest
function oak.createHttpError
import { oak } from "https://deno.land/x/hex@0.6.3/src/fw/service/deps.ts";
const { createHttpError } = oak;

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

Parameters

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