Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Status not checked #134

@frioux

Description

@frioux

I wrote some code to do a request and was surprised when the body was empty. After some digging I found that the code that actually does an HTTP request never checks the status code, so if the upstream server returns a 500 (or whatever) all you get is an empty response. I would be happy to submit a PR that surfaces an error when the status is >= 400.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions