Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deco/engine/errors.ts

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
import * as deco from "https://deno.land/x/deco@1.75.1/engine/errors.ts";

Classes

Escape hatch to allow throwing an http error

Variables

Returns a bad request error

Returns a forbidden error.

Returns not found error.

Redirect using the specified @param url.

Stop any config resolution and throw an exception that should be returned to the main handler.

Returns a response with given status and formatted error message if provided.

Returns a unauthorized error.