Чтобы расширить принятый ответ, я использую следующий скрипт, чтобы предупредить своих пользователей и себя, что произошла ошибка AJAX:
$(document).ajaxError(function(event, jqxhr, settings, exception) {
if (exception == 'abort') {return false;}
if (exception === '') {exception = 'user aborted process';}
alert('An AJAX error [' + exception + '] occurred in script: ' + settings.url + '<br \><br \>Please report this to the development team!');
console.log(event, jqxhr, settings, exception);
});