You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can make your own middleware to deal with 404 and 500 errors.
A 404 error occurs when a user requests a resource or types in an endpoint that does not exist
A 500 error occurs when some server side logic goes fails (e.g. a database query fails, or
You can create 404.hbs and 500.hbs views and app.use them after all your routing logic in index.js, like in section 11 of the morning codealong we did on Sunday.
The text was updated successfully, but these errors were encountered:
You can make your own middleware to deal with 404 and 500 errors.
You can create 404.hbs and 500.hbs views and
app.use
them after all your routing logic inindex.js
, like in section 11 of the morning codealong we did on Sunday.The text was updated successfully, but these errors were encountered: