MY API returning 500 on the case of success instead of default 200, how can i handle it as success in retrofit 2.0. Please help me .
Asked
Active
Viewed 568 times
1 Answers
1
Check your
response.errorBody()
if it contains the valid response you can convert it to JSON by using retrofit.responseBodyConverter

Community
- 1
- 1

shanraisshan
- 3,521
- 2
- 21
- 44