8000 `Error::StatusCode` omits `response` in ureq 3 · Issue #997 · algesten/ureq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error::StatusCode omits response in ureq 3 #997
Open
@jcyling

Description

@jcyling

Version 2 of ureq returned (u16, response) when the error was an Error::Status, allowing the calling function to decide what to do with the response part of 4xx and 5xx errors. This is useful for many purposes. However this is no longer returned in version 3's Error::StatusCode.

I can see that there is an option to turn http_status_as_error off inside the request config to stop translating 4xx/5xx status code errors to Error::StatusCode, although it requires adding logic to check those status codes manually. While this is helpful it's not as nice as receiving the response back automatically. Are there any plans to reintroduce response back in the StatusCode variant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0