I have below requirement. Whenever datapower sends any http response other than 200, client doesn't want datapower to send the XML payload included in the response as they would not be able to make use of it. However, in case of http 200 response, they would expect the xml payload.
If I use the response type as XML, how would I make sure that in case of any http respose than 200, client doesn't receive xml payload?
Could anyone please help me in this?