import { HttpError } from "https://deno.land/x/alosaur@v1.1.0/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 .