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 REST APIs with Express!
You have completed REST APIs with Express!
Preview
Providing the client with informative HTTP status codes is part of building a useful and usable API.
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
HTTP status codes give the client
important information about the request
0:00
and response cycle.
0:02
In this video, we'll use some of
the most common http status codes.
0:04
Generally, the status codes you'll use the
most are in the 200, 400 and 500 range.
0:07
Status codes in the 200s mean
everything went as expected.
0:13
400s means something went
wrong with the request,
0:17
like a missing resource or
the wrong information was sent.
0:20
500s means something went
wrong with the server.
0:23
Something unexpected happened that
prevented the server from fulfilling
0:26
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