KatInterview

Spot the Wrong Claim About HTTP Status Code Classes

System DesignModel answer
EasyModel answerSystem Designhttpstatus-codesweb-protocols

Last updated

Pick the one false statement among four claims about HTTP status code families, then explain the client-versus-server split and why it matters for retries, alerting, and API design.

HTTP Status Codes: Find the False Statement

Four statements about HTTP response status codes are listed below. Exactly one of them is wrong.

  • A. A 100 response tells the client it may go ahead and send the rest of its request.
  • B. Any 2xx response means the server received the request, understood it, and accepted it.
  • C. A 301 response means the target resource now lives permanently at a different URL, so the client is being redirected.
  • D. Any 4xx response means the server itself ran into a fault or an abnormal condition while handling the request.

Your task:

  1. Identify which statement is incorrect.
  2. State what the incorrect statement should say instead.
  3. Briefly explain why the distinction matters to engineers building or operating web services (for example, in retry logic, monitoring, or API design).

Hints

Hint 1

Status codes are grouped by their first digit, and each group answers a single question: did it work, does the client need to do more, or who is at fault?

Hint 2

Check each option against its class: 1xx is interim, 2xx is success, 3xx is redirection. Then ask which party is blamed in 4xx and which in 5xx.

Hint 3

One option describes a fault on the server's side but attaches it to the wrong range of codes. Think about which range is meant for faults in the server.