The result status is not set in the transaction responses because of assuming a RestDataSource is always a xml datasource. Because the status never gets set the response always returns SUCCESS.
@See: RPCManager.js, line: 3831
This line should be changed to:
@See: RPCManager.js, line: 3831
Code:
if (response.results && !request.isRestRequest) {Code:
if (response.results && !(request.isRestRequest && request.dataFormat!='json')) {