Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Raise http exception when the response is error message #21

Open
YakupIpek opened this issue Aug 1, 2018 · 0 comments
Open

Raise http exception when the response is error message #21

YakupIpek opened this issue Aug 1, 2018 · 0 comments

Comments

@YakupIpek
Copy link

It is quite difficult to handle exception case when it is occured. Naturally it is expected to have http status error from response but http status code is always OK(200) despite it returns error result.

I can easily detect error by checking http status code and deserialize json result according to status code. Otherwise it is very ugly to handle success and error response in the code.

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

No branches or pull requests

1 participant