-
Notifications
You must be signed in to change notification settings - Fork 22.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP does not allow content for 204 anymore #36146
Comments
Thanks for raising this one. You are right in saying that there should be no content. The specs have been more and more consistent / explicit, as far as I see, in saying 204 (No Content) doesn't have a message body( and doesn't have a
From RFC9110:
The note at the end of the MDN page is covering unspecified behavior, essentially: what browsers have done when they receive malformed responses. Sending garbage data as a message body in 204 responses may have happened in buggy server software versions in the past, possibly due to compression configuration. I'm not sure if that info really belongs on the article itself, though, as this might not be useful for readers. |
See also some context how this landed on these pages: https://bugzilla.mozilla.org/show_bug.cgi?id=1356614 |
@bsmth Might be worth you assigning yourself the issue, given your other work in the area? |
I already started to draft some changes earlier in the week, so what I think we need is:
|
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204
What specific section or headline is this issue about?
Compatibility notes
What information was incorrect, unhelpful, or incomplete?
What did you expect to see?
The issue was closed with the most recent HTTP specifications that now do not allow any content (except CRLF?) for 204 anymore, if I understood the spec correctly.
Do you have any supporting links, references, or citations?
httpwg/http-core#26
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/http/status/204
The text was updated successfully, but these errors were encountered: