fixing the way in which we are retuning the errors in the new version of services