Skip to main content
Module

x/oak_nest/mod.ts>createHttpError

Refer to nestjs to realize some common functions for Deno
Go to Latest
function createHttpError
import { createHttpError } from "https://deno.land/x/oak_nest@v1.15.1/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

Returns

HttpError