interface ErrorContext
implements RouteContext
import { type ErrorContext } from "https://deno.land/x/workers_router@v0.3.0-pre.6/index.ts";
Properties
response: Response
If the exception is well-known and caused by middleware, this property is populated with a Response
object
with an appropriate status code and text set.
You can use it to customize the error response, e.g.: new Response('...', response)
.