Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oak_exception/src/exception_status.ts>HttpException

A global exception filter middleware by oak.
Latest
class HttpException
extends Error
import { HttpException } from "https://deno.land/x/oak_exception@v0.2.1/src/exception_status.ts";

Constructors

new
HttpException(response: any, status: number)

Properties

private
response: any
status: number

Static Methods

createBody(
objectOrError: any,
description: string,
statusCode: number,
)