Skip to main content
Module

x/alosaur/mod.ts>HttpError

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
class HttpError
extends Error
Re-export
import { HttpError } from "https://deno.land/x/alosaur@v0.38.0/mod.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