Skip to content

StatusError is not raised #581

@0x1997

Description

@0x1997

Describe the bug
StatusError is not raised for non-200 status code

To Reproduce

import wreq

resp = await wreq.get("https://httpbin.org/status/404")
assert resp.status.as_int() == 404

Expected behavior
StatusError should be raised for non-200 status code

Additional context
wreq version: 0.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature. This is requesting a new feature.E-easyEffort: Easy! Start here :DE-pr-welcomeThe feature is welcome to be added, instruction should be found in the issue.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions