@http · HTTP status codes, explained HTTP/1.1 204 No Content ━━━━━━━━━━━━━━━━━━━━━━━ 2xx · Success Success, and there's nothing to send back. WHAT IT MEANS ──────────────────────────────────────────────────────────── The request succeeded and there's no body to send. The headers can still carry useful metadata, such as a new ETag. A 204 response must not include a body. WHY YOU'RE SEEING IT ───────────────────────────────────────────────────── → A successful DELETE. → A PUT or PATCH where the client already has the new state. → Analytics beacons and CORS preflight responses. HOW TO FIX IT ──────────────────────────────────────────────────────────── → Don't send a body or Content-Length greater than zero; some clients hang or misread the next response. → If the client needs the updated resource, return 200 with it instead. EXAMPLE RESPONSE ───────────────────────────────────────────────────────── HTTP/1.1 204 No Content ETag: "v7" related 200 OK   205 Reset Content   201 Created spec RFC 9110 §15.3.5 https://www.rfc-editor.org/rfc/rfc9110#section-15.3.5 web https://athttp.com/204 ← curl athttp.com/203 curl athttp.com/205 →