Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ErrorHandler

import type { ErrorHandler } from "https://crux.land/api/get/2KNRVU.ts";

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

type ErrorHandler = (req: Request, err: unknown) => Response | Promise<Response>;

§Type

§
(req: Request, err: unknown) => Response | Promise<Response>
[src]