import { HttpError } from "https://deno.land/x/alosaur@v0.24.1/src/http-error/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 .