• 1 reply
  • Latest Post - ‏2012-11-07T10:44:43Z by kenhygh
34 Posts

Pinned topic How to send Different error response

‏2012-11-07T03:16:28Z |

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.

Updated on 2012-11-07T10:44:43Z at 2012-11-07T10:44:43Z by kenhygh
  • kenhygh
    2467 Posts

    Re: How to send Different error response

    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.