Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Express Basics!
You have completed Express Basics!
Preview
Handling errors is an important (and easy to overlook) topic any program should address. Learn how to handle them in Express.
More on the JavaScript Error constructor
- Error (MDN article)
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
The client received a 404
error back from our route.
0:00
This meant, Express didn't have
the page that we requested.
0:01
More specifically,
it meant that there was no get route for
0:04
our app matching the URL we requested.
0:09
Applications always need a way
of handling errors like this.
0:12
Other errors might occur when
the app can't reach a database, or
0:17
when a user mistype their password.
0:22
Errors are an important tool for
0:25
your user as they learn how
to interact with your app.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up