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