Skip to content

Allow new Response with 101 status code #1759

@benjamingr

Description

@benjamingr

What is the issue with the Fetch Standard?

Currently we say:

If init["status"] is not in the range 200 to 599, inclusive, then throw a RangeError.

A request was recently made to Node.js to support status 101 when initializing requests, i.e. new Response(null, { status: 101 }).

This is because people use Response in server runtimes to indicate well... a response 😅

On the service worker front, I'm not sure how this would be useful outside of testing (but it'd be useful there).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions