You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

how to catch 400 error from the business object REST API calls ?

Summary:

Hi Experts

I'm calling create passport business object and the api is returning 400 error due to bad request. How can i catch this error and show the error message instead of sorry agent unavailable ?

I tried below, but didnt work:


Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!