@http · HTTP status codes, explained HTTP/1.1 200 OK ━━━━━━━━━━━━━━━ 2xx · Success The request succeeded and the response holds the result. WHAT IT MEANS ──────────────────────────────────────────────────────────── The standard success response. What the body contains depends on the method: the resource for GET, the result of the action for POST, just headers for HEAD. WHY YOU'RE SEEING IT ───────────────────────────────────────────────────── → A normal, successful request. → An API that returns 200 with an error inside the JSON body. This is an anti-pattern that hides failures from clients and monitoring. HOW TO FIX IT ──────────────────────────────────────────────────────────── → Nothing to fix. If the request created something, 201 Created is more precise. → If there's no body to send, use 204 No Content. EXAMPLE RESPONSE ───────────────────────────────────────────────────────── HTTP/1.1 200 OK Content-Type: application/json Cache-Control: max-age=60  {"id": 42, "name": "teapot"} related 201 Created   204 No Content   304 Not Modified spec RFC 9110 §15.3.1 https://www.rfc-editor.org/rfc/rfc9110#section-15.3.1 web https://athttp.com/200 ← curl athttp.com/103 curl athttp.com/201 →