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

x/opine/src/utils/createError.ts>createError

Minimalist web framework for Deno ported from ExpressJS.
Latest
function createError
import { createError } from "https://deno.land/x/opine@2.3.4/src/utils/createError.ts";

Create a new HttpError.

Parameters

status: number
optional
message: string
optional
props: Props

Returns

HttpError

Parameters

status: number
props: Props

Returns

HttpError

Parameters

err: Error
optional
props: Props

Returns

IError