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

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

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
import * as alosaur from "https://deno.land/x/alosaur@v0.1.1/src/http-error/HttpError.ts";

Classes

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 .