101 · Question #183
Which HTTP response code ranges indicate an error condition? (Choose 2)
The correct answer is D. 4xx E. 5xx. HTTP status codes in the 4xx range indicate client-side errors and codes in the 5xx range indicate server-side errors, both representing error conditions.
Question
Which HTTP response code ranges indicate an error condition? (Choose 2)
Options
- A1xx
- B2xx
- C3xx
- D4xx
- E5xx
How the community answered
(58 responses)- A7% (4)
- B2% (1)
- C2% (1)
- D90% (52)
Why each option
HTTP status codes in the 4xx range indicate client-side errors and codes in the 5xx range indicate server-side errors, both representing error conditions.
1xx codes are informational responses indicating that the request was received and processing is continuing, not an error condition.
2xx codes indicate success, such as 200 OK meaning the request was fulfilled correctly.
3xx codes indicate redirection, meaning the client must take additional action to complete the request, not that an error occurred.
4xx codes such as 400 Bad Request and 404 Not Found indicate that the client sent a request the server could not fulfill due to a client-side problem.
5xx codes such as 500 Internal Server Error and 503 Service Unavailable indicate that the server encountered an error while trying to process a valid request.
Concept tested: HTTP response status code classification and error ranges
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
Topics
Community Discussion
No community discussion yet for this question.