{"id":18926783,"url":"https://github.com/ladjs/koa-404-handler","last_synced_at":"2025-07-02T01:32:19.307Z","repository":{"id":25171302,"uuid":"103354649","full_name":"ladjs/koa-404-handler","owner":"ladjs","description":"404 handler for Lad and Koa (best used with koa-better-error-handler)","archived":false,"fork":false,"pushed_at":"2021-12-03T10:17:52.000Z","size":227,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T12:58:35.003Z","etag":null,"topics":["404","ctx","error","handler","koa","lad","middleware"],"latest_commit_sha":null,"homepage":"https://lad.js.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ladjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-13T04:50:45.000Z","updated_at":"2022-09-16T22:34:18.000Z","dependencies_parsed_at":"2022-08-07T11:15:24.744Z","dependency_job_id":null,"html_url":"https://github.com/ladjs/koa-404-handler","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ladjs/koa-404-handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fkoa-404-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fkoa-404-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fkoa-404-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fkoa-404-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ladjs","download_url":"https://codeload.github.com/ladjs/koa-404-handler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fkoa-404-handler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260933469,"owners_count":23084957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["404","ctx","error","handler","koa","lad","middleware"],"created_at":"2024-11-08T11:17:10.186Z","updated_at":"2025-07-02T01:32:19.276Z","avatar_url":"https://github.com/ladjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koa-404-handler\n\n[![build status](https://img.shields.io/travis/ladjs/koa-404-handler.svg)](https://travis-ci.org/ladjs/koa-404-handler)\n[![code coverage](https://img.shields.io/codecov/c/github/ladjs/koa-404-handler.svg)](https://codecov.io/gh/ladjs/koa-404-handler)\n[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)\n[![license](https://img.shields.io/github/license/ladjs/koa-404-handler.svg)]()\n\n\u003e 404 handler for [Lad][] and [Koa][] (best used with [koa-better-error-handler][])\n\n\n## Table of Contents\n\n* [Install](#install)\n* [Usage](#usage)\n* [Contributors](#contributors)\n* [License](#license)\n\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install koa-404-handler\n```\n\n[yarn][]:\n\n```sh\nyarn add koa-404-handler\n```\n\n\n## Usage\n\n```js\nconst errorHandler = require('koa-better-error-handler');\nconst koa404Handler = require('koa-404-handler');\n\n// ...\n\n// override koa's undocumented error handler\napp.context.onerror = errorHandler;\n\n// ... routes go here ...\n\napp.use(koa404Handler);\n\napp.listen();\n```\n\n\n## Contributors\n\n| Name           | Website                    |\n| -------------- | -------------------------- |\n| **Nick Baugh** | \u003chttp://niftylettuce.com/\u003e |\n\n\n## License\n\n[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)\n\n\n##\n\n[npm]: https://www.npmjs.com/\n\n[yarn]: https://yarnpkg.com/\n\n[lad]: https://lad.js.org\n\n[koa]: http://koajs.com\n\n[koa-better-error-handler]: https://github.com/ladjs/koa-better-error-handler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fladjs%2Fkoa-404-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fladjs%2Fkoa-404-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fladjs%2Fkoa-404-handler/lists"}