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

Error page #37

Open
matthewdking opened this issue Oct 3, 2017 · 1 comment
Open

Error page #37

matthewdking opened this issue Oct 3, 2017 · 1 comment

Comments

@matthewdking
Copy link
Collaborator

create a custom error page that can render custom error messages to the user

@matthewdking matthewdking self-assigned this Oct 3, 2017
matthewdking pushed a commit that referenced this issue Oct 3, 2017
matthewdking pushed a commit that referenced this issue Oct 3, 2017
@matthewdking
Copy link
Collaborator Author

matthewdking commented Oct 3, 2017

To render the error page use this but change the status code and message to something more appropriate for each specific case

return res.render('error', {
        statusCode: 404,
        message: 'page not found',
        type: 'error'
      });

@veredrec @Heathercoraje @sajedazoabi @paulhanna1933

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant