In my policy I have request, response and common error rule.
If it fails to process the request or if we get any fault response from the backend error rule is getting triggered and its giving error response (Common error error response in both the cases).
Now I need to give different error response if request process fails and if response contains any fault exception.
Can you please help how can i handle this.
Thanks in advance.
Pinned topic How to send Different error response
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-07T10:44:43Z at 2012-11-07T10:44:43Z by kenhygh
kenhygh 120000PD1B1663 Posts
Re: How to send Different error response2012-11-07T10:44:43ZThis is the accepted answer. This is the accepted answer.You can use DP:responding() to figure out if the error happened during the request or the response. Your response rule will probably have to determine if a fault is returned by the service provider.