Open
Description
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?