Deno.ServeUnixOptions.onError - Deno documentation
property Deno.ServeUnixOptions.onError

The handler to invoke when route handlers throw an error.

Type

(error: unknown) => Response | Promise<Response>