Added the statusCode from the RemoteException to the error response.