FAQBrowser MonitoringHow do I notify jQuery Ajax errors?

You can add following code to notify jQuery Ajax errors to Atatus.

function processJQueryAjaxError(event, jqXHR, ajaxSettings, thrownError) {

    var message = 'AJAX Error: ' +
            (jqXHR.statusText || 'unknown') +' '+
            (ajaxSettings.type || 'unknown');

    atatus.notify(thrownError || event.type, {
        status: jqXHR.status,
        statusText: jqXHR.statusText,
        type: ajaxSettings.type,
        url: ajaxSettings.url,
        ajaxErrorMessage: message,
        contentType: ajaxSettings.contentType,
        activeTarget: event.target && event.target.activeElement ? event.target.activeElement.outerHTML : undefined
    });
}

$(document).ajaxError(processJQueryAjaxError);