We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
express:
.catch((err) => { const error = new Error(err); error.httpStatusCode = 500; return next(error); });
app.use((error, req, res, next) => { // res.status(error.httpStatusCode).render(...); res.redirect('/500'); })
find out how this works for nextJS apps
The text was updated successfully, but these errors were encountered:
Sneruall
No branches or pull requests
express:
app.use((error, req, res, next) => {
// res.status(error.httpStatusCode).render(...);
res.redirect('/500');
})
find out how this works for nextJS apps
The text was updated successfully, but these errors were encountered: