Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404, 500, etc. handlers #1

Open
mlrawlings opened this issue Jan 20, 2017 · 0 comments
Open

404, 500, etc. handlers #1

mlrawlings opened this issue Jan 20, 2017 · 0 comments

Comments

@mlrawlings
Copy link
Owner

404 could easily be done by providing a catchall route:

exports.path = /.*/;
exports.handler = (req, res) => {
   res.send(404, 'Page Not Found');
}

But it might be nice to have something a bit more built in, and especially for error handlers. It would also allow outputing a 404.html and similar for GitHub pages.

@mlrawlings mlrawlings mentioned this issue Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant