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

x/rutt/mod.ts>ErrorHandler

🛣️ A tiny and fast http request router designed for use with deno and deno deploy
Latest
type alias ErrorHandler
import { type ErrorHandler } from "https://deno.land/x/rutt@0.3.0/mod.ts";

A handler type for anytime the MatchHandler or other parameter handler fails

Type Parameters

optional
T = unknown
definition: (
req: Request,
err: unknown,
) => Response | Promise<Response>