Re: [whatwg/fetch] Allow `new Response` with 101 status code (Issue #1759)

The fix should we choose to support it sounds as simple as:

```
If init["[status](https://fetch.spec.whatwg.org/#dom-responseinit-status)"] is not in the range 100 to 599, inclusive, then [throw](https://webidl.spec.whatwg.org/#dfn-throw) a [RangeError](https://webidl.spec.whatwg.org/#exceptiondef-rangeerror).
```

Although we would need to carefully go over all the places this might impact and confirm it. Additionally if/when service workers ever support intercepting and caching websocket messages this would also be useful for that.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1759#issuecomment-2156414539
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1759/2156414539@github.com>

Received on Sunday, 9 June 2024 09:35:05 UTC