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…



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hafiq Iqmal

Tech Lead Back-End Developer | Software Engineer | Laravel Enthusiasts | CTF Newbie | Medium writer