We are using "Customize Error Response" and then "Raise Error" in our service and raising a 500 error, but in message-completed global policy we are not getting the response object to fetch ${response.http.status}, though SoapUI is getting the HTTP 500 error.
How can we get the response status or http error status that is returned from the service in case of "Raise error" in message-completed policy?
While if we use "Return template response to Requestor" in our service , we are getting response object in message-completed policy and hence the value for ${response.http.status} .
Good afternoon,
I've just tested this in a version 9.3 gateway. I found that with just an audit detail writing to log with the message of "Message completed: ${response.http.status}" and the main policy has a Customize Error Response and a Raise Error that the gateway will record a value of 0 as there were no Routing and the policy just exited out. The 500 error is being produced outside of the policy as the Raise Error exits the policy.
Sincerely,
Stephen Hughes
Broadcom Support