Concept explanation
HTTP status codes are a compact language between backend services and clients. In this game, each scenario asks what the server should say through the status line before any response body is considered.
Choose the correct HTTP status code for realistic backend scenarios and learn the response semantics behind each answer.
practice/http-status-defender Accuracy and speed score Play, get feedback, save local progress, and optionally submit a leaderboard score.
HTTP status codes are a compact language between backend services and clients. In this game, each scenario asks what the server should say through the status line before any response body is considered.
Use the controls below. Feedback appears immediately, and final scores are stored locally.
Top 10 submitted scores. No account required.
Loading leaderboard...
Finish the game to load your latest local score.
HTTP status codes are part of the API contract. They let clients decide whether to retry, prompt for login, update local cache, or fix request data.
Good backend APIs use status codes consistently. A 401 means the client needs authentication, while a 403 means the authenticated actor is not allowed to perform the action.
Short answers for how this game fits backend interview and study practice.
No. Use the convention your API documents. This game teaches 422 as a useful choice for semantically valid JSON that fails domain validation.
Conditional requests are common in caching. 304 tells the client its cached copy is still valid.