errorCode and errorMessage changes
Update for new version of Rest protocol (errorCode->code)