Correction for error management in REST services calls