Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Extremely Popular
Go to Latest
function rutt.defaultErrorHandler
import { rutt } from "https://deno.land/x/fresh@1.1.3/src/server/deps.ts";
const { defaultErrorHandler } = rutt;

The default error handler for the router. By default it responds with null body and a status of 500 along with console.error logging the caught error.

Parameters

_req: Request
err: unknown