Skip to content

Should status = 0 be considered ok for mode: no-cors-requests? #305

@ulken

Description

@ulken

According to the WHATWG Spec., status should be set to 0 for a so called opaque response stemming from a mode: "no-cors"-request. Interestingly enough, it's not considered an "OK" response in regards to response.ok (only includes 2xx).

Regardless, should 0 be treated as OK for no-cors-requests? I.e. should ky not throw an HTTPError in such cases? If it indeed should, is there/can we provide some sort of mechanism to treat a status code as an OK response?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions