API Response error handling in the best way
A good error handling give additional information about the underlying fault, as well as lessen your time on debugging and also give user friendly feedback — readable message instead of user hanging with robot message.
I have done many web service integration. I have seen many style of response handling. Some are good and some are bad. There is some API i used gives bad response. For…