How can i handle api return error in user friendly mode, currently i am getting api’s return error like this screenshot which is mentioned below
But want to return some user friendly formatted data with response code.

How can i handle api return error in user friendly mode, currently i am getting api’s return error like this screenshot which is mentioned below
But want to return some user friendly formatted data with response code.

No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.