interface ErrorContext
implements RouteContext
import { type ErrorContext } from "https://deno.land/x/shed@v0.1.0-pre.10/router.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)
.