We would like to utilize a custom fault policy in the case when the southbound target times out. Currently, we're getting a default fault response along with a 503 response code:
{code}
{"Envelope":{"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/","Body":{"Fault":{"faultcode":"soap:Server","faultstring":"The Service is temporarily unavailable","faultactor":{},"detail":{"source":{"errorcode":"messaging.adaptors.http.flow.ServiceUnavailable"}}}}}}
{code}
Since it is not actually going into the target flow, we cannot add the policy to the fault rules for the target. Also, I haven't been able to access the 503 response code for a condition on the fault rule. Is there a clean way to do this? Would this require some custom Javascript to make this work?
I think you could use DefaultFaultRule on the ProxyEndpoint to catch these errors
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |