The composer and RESTEasyProxy logic for RESTEasy gateway should change to be fault-aware. Right now, the fault status is not checked and the proxy returns content of message as a result directly.
One of the most straightforward ways to accomplish this would be to check if the exchange state is fault and to grab the exception content and wrap it in a WebApplicationException which is then thrown from RESTEasyProxy.
|