SONAR-4535 Improve Ajax errors handling