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

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

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

Classes

Exception for 400 HTTP error.

Exception for 403 HTTP error.

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 .

Exception for 500 HTTP error.

Exception for todo HTTP error.

Exception for 406 HTTP error.

Exception for 404 HTTP error.

Exception for 401 HTTP error.