Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- What is Express Middleware? 2:22
- Middleware Sequence and Routing 5:11
- Review: Middleware Sequence and Routing 5 questions
- The `next` function and a Closer Look at Middleware 4:45
- Handling Errors in an Express App 3:56
- Review: `next` and Handling Errors 5 questions
- Error Handling Middleware 5:20
- Handling 404 Errors 2:34
- Review: Error Handling and 404s 5 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Now that we have a custom error handler, let's add a middleware function to handle 404 errors, and send them to the error handler.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
vamosrope14
14,932 Points1 Answer
-
Sean Flanagan
33,236 Points4 Answers
-
Daniel Stein
90 Points1 Answer
-
Stanislaus Slupecki
1,986 Points6 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
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