add erros on a resource

Set errors on the resource if the service returns any.