Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function oak.createHttpError
import { oak } from "https://deno.land/x/hex@0.5.15/src/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