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

x/rutt/mod.ts>defaultErrorHandler

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

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