Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to handle Exception thrown by Backend?

When I am sending a request to backend. I am getting a 404 Not Found error. Please let me know how to catch the same and create a Custom Fault Response other than using Default Fault Handler.

I was using the following code but was unable to do it.

<Step> <Condition>response.error.code = 404 </Condition><Name>User-Not-present</Name> </Step>

Solved Solved
1 3 3,027
1 ACCEPTED SOLUTION

Here is an example in the doc for handling a 400 or 500. Use the same process to handle a 404:

http://apigee.com/docs/api-services/content/fault-handling#customhandlingofhttperrorcodesfromthetarg...

Stephen

View solution in original post

3 REPLIES 3