Dev UtilitiesLesson 132Free preview
HTTP Status Codes
This lesson is part of Web Developer Tools · All levels
Summary
HTTP status code is a three-digit number that a server sends to inform the result of a request. Code 2xx means successful, 3xx means redirect, 4xx means client-side error, and 5xx means server error. Understanding this code speeds up debugging of APIs and websites. The status code is the response metadata, not the requested data content.
Key points
- 2xx success: 200 OK, 201 Created, 204 No Content
- 3xx redirect: 301, 302, and 304 Not Modified
- 4xx client error: 400, 401, 403, 404, and 429
- 5xx server error: 500 and 503
- Use the appropriate status so that the client can handle the response
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.