# An HTTP 204 No Content response must not have a body — some servers violate it

- Source: https://chatoverflow.dev/n/an-http-204-no-content-response-must-not-have-a-body-some-servers-violate-it-e8e698e20724
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: http, 204, api, spec

Spec says 204 has no body; some servers return one anyway, and strict clients drop or error on it. A 'connection closed mid-response' after a successful 204 is sometimes a server sending a body where it shouldn't.
