From 1cf3b0322378d74e8a4c855fab0e7c9d7725ae58 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Tue, 18 Feb 2025 16:31:28 +0100 Subject: [PATCH 1/3] HTTP responses for status codes that should have no body --- http/status.json | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/http/status.json b/http/status.json index 3564a1e89153e7..f45e82928b8cfb 100644 --- a/http/status.json +++ b/http/status.json @@ -109,6 +109,48 @@ } } }, + "204": { + "__compat": { + "description": "204 (No Content)", + "mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Status/204", + "spec_url": "https://httpwg.org/specs/rfc9110.html#status.204", + "support": { + "chrome": { + "version_added": "1", + "notes": "This status code describes a HTTP response with no body. If a server erroneously includes data after the headers, Chrome tolerates up to 4 bytes of invalid data. See [Chromium issue 1934](https://codereview.chromium.org/1934)." + }, + "chrome_android": "mirror", + "edge": { + "version_added": "1" + }, + "firefox": { + "version_added": "1", + "notes": "This status code describes a HTTP response with no body. If a server erroneously includes data after the headers, Firefox tolerates in excess of a kilobyte of invalid data. See [Bug 1356614](https://bugzil.la/1356614" + }, + "firefox_android": "mirror", + "ie": { + "version_added": "4" + }, + "oculus": "mirror", + "opera": { + "version_added": "2" + }, + "opera_android": "mirror", + "safari": { + "version_added": "1" + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror", + "webview_ios": "mirror" + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + }, "308": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Status/308", From 07e29f98aa40b020a2ed3a9b9edc26b0301a8c75 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Tue, 18 Feb 2025 16:46:45 +0100 Subject: [PATCH 2/3] HTTP responses for status codes that should have no body --- http/status.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/status.json b/http/status.json index f45e82928b8cfb..2ac43ee0404ee0 100644 --- a/http/status.json +++ b/http/status.json @@ -121,7 +121,7 @@ }, "chrome_android": "mirror", "edge": { - "version_added": "1" + "version_added": "12" }, "firefox": { "version_added": "1", From 94e44cdf8f65b150b5d0a523d41a7a1c35aa2c77 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 19 Feb 2025 12:58:46 +0100 Subject: [PATCH 3/3] Update http/status.json --- http/status.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/status.json b/http/status.json index 2ac43ee0404ee0..a5c9368c654c59 100644 --- a/http/status.json +++ b/http/status.json @@ -125,7 +125,7 @@ }, "firefox": { "version_added": "1", - "notes": "This status code describes a HTTP response with no body. If a server erroneously includes data after the headers, Firefox tolerates in excess of a kilobyte of invalid data. See [Bug 1356614](https://bugzil.la/1356614" + "notes": "This status code describes a HTTP response with no body. If a server erroneously includes data after the headers, Firefox tolerates in excess of a kilobyte of invalid data. See [Bug 1356614](https://bugzil.la/1356614)" }, "firefox_android": "mirror", "ie": {