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

x/fresh/src/server/deps.ts>rutt.ErrorHandler

The next-gen web framework.
Extremely Popular
Go to Latest
type alias rutt.ErrorHandler
import { type rutt } from "https://deno.land/x/fresh@1.1.4/src/server/deps.ts";
const { ErrorHandler } = rutt;

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>