states.cloud: handle better the error outputs
Merge pull request #11469 from makinacorpus/cloud

states.cloud: handle better the error outputs