Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

ladjs/koa-404-handler

build statuscode coveragecode stylestyled with prettiermade with lasslicense

404 handler forLad andKoa (best used withkoa-better-error-handler)

Table of Contents

Install

npm:

npm install koa-404-handler

yarn:

yarn add koa-404-handler

Usage

consterrorHandler=require('koa-better-error-handler');constkoa404Handler=require('koa-404-handler');// ...// override koa's undocumented error handlerapp.context.onerror=errorHandler;// ... routes go here ...app.use(koa404Handler);app.listen();

Contributors

NameWebsite
Nick Baughhttp://niftylettuce.com/

License

MIT ©Nick Baugh

About

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

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp