Which two HTTP status-code classes indicate errors in REST APIs? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: 4XX, 5XX.
Why this is the answer
HTTP status codes are grouped into classes based on their first digit. The 4XX class (Client Error) indicates that the client made a bad request. Examples include 400 Bad Request, 401 Unauthorized, and 404 Not Found. The 5XX class (Server Error) indicates that the server failed to fulfill a valid request. Examples include 500 Internal Server Error and 503 Service Unavailable. The other classes are not error indicators. 1XX (Informational) codes indicate that the request was received and understood. 2XX (Success) codes indicate that the action was successfully received, understood, and accepted. 3XX (Redirection) codes indicate that further action needs to be taken to complete the request.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed