404 handler for Lad and Koa (best used with koa-better-error-handler)
npm install koa-404-handler




![license]()
> 404 handler for [Lad][] and [Koa][] (best used with [koa-better-error-handler][])
* Install
* Usage
* Contributors
* License
[npm][]:
``sh`
npm install koa-404-handler
[yarn][]:
`sh`
yarn add koa-404-handler
`js
const errorHandler = require('koa-better-error-handler');
const koa404Handler = require('koa-404-handler');
// ...
// override koa's undocumented error handler
app.context.onerror = errorHandler;
// ... routes go here ...
app.use(koa404Handler);
app.listen();
``
| Name | Website |
| -------------- | -------------------------- |
| Nick Baugh |
##
[npm]: https://www.npmjs.com/
[yarn]: https://yarnpkg.com/
[lad]: https://lad.js.org
[koa]: http://koajs.com
[koa-better-error-handler]: https://github.com/ladjs/koa-better-error-handler