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

Pinned topic How to send Different error response

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

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.

Regards,
Srini
Updated on 2012-11-07T10:44:43Z at 2012-11-07T10:44:43Z by kenhygh
  • kenhygh
    kenhygh
    1577 Posts

    Re: How to send Different error response

    ‏2012-11-07T10:44:43Z  
    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.

    Ken