Skip to content

Add a response.ok boolean similar to fetch API? #2036

@KyleAMathews

Description

@KyleAMathews

It's quite handy and would ease migrating to got.

It's set to false if (res.statusCode < 200 || res.statusCode > 299) or true if in 200-299.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions