Back to Cheat SheetsAPI · Beginner
HTTP Status Codes cheat sheet
What each family means and which code to expect in a negative test.
Success
200 OK
Request succeeded with a body201 Created
Resource created — expect a Location header202 Accepted
Async processing started204 No Content
Success with an empty body, typical for DELETERedirect and client errors
301 / 302
Permanent / temporary redirect304 Not Modified
Cache still valid400 Bad Request
Malformed or invalid payload401 vs 403
401 = not authenticated, 403 = authenticated but not allowed404 / 409 / 422
Missing / conflict / semantically invalid429 Too Many Requests
Rate limited — check Retry-AfterServer errors
500
Unhandled server error — always a defect502 / 503 / 504
Often infrastructure, not application code
Bad gateway / unavailable / gateway timeoutGo beyond the reference
Book a free demo class and apply these commands on live project work.