notFound method

Chase notFound(
  1. Handler handler
)

Sets a custom handler for 404 Not Found responses.

Example

app.notFound((ctx) => {
  'error': 'Not Found',
  'path': ctx.req.path,
  'method': ctx.req.method,
});

Implementation

Chase notFound(Handler handler) {
  _notFoundHandler = handler;
  return this;
}