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

x/alosaur/src/http-error/HttpError.ts>HttpError

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
class HttpError
extends Error
import { HttpError } from "https://deno.land/x/alosaur@v0.35.2/src/http-error/HttpError.ts";

Used to throw HTTP errors. Just do throw new HttpError(code, message) in your controller action and default error handler will catch it and give in your response given code and message .

Constructors

new
HttpError(httpCode: number, message?: string)

Properties

httpCode: number | undefined