Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature HTTPStatusCode in exception #565

Closed
imtrobin opened this issue Nov 4, 2020 · 2 comments
Closed

Feature HTTPStatusCode in exception #565

imtrobin opened this issue Nov 4, 2020 · 2 comments

Comments

@imtrobin
Copy link

imtrobin commented Nov 4, 2020

From issue #488

Like to be able to get StatusCode from exception easier, currently I have to do this

HttpStatusCode? httpCode = ex.Call?.Response?.ResponseMessage.StatusCode

@imtrobin imtrobin changed the title e Feature HTTPStatusCode in exception Nov 4, 2020
@tmenier
Copy link
Owner

tmenier commented Dec 14, 2020

StatusCode is back but I decided to make it an int? for consistency. I believe you preferred enums and all I can say is it's a difference of opinion. I'm just not a fan of abstracting away the HTTP status. I know not everybody agrees with that, though many do.

@tmenier
Copy link
Owner

tmenier commented Dec 14, 2020

Released in 3.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants