I want to have a global error handling method for ajax calls, this is what I have now:
$.ajaxSetup({ error: function (XMLHttpRequest, textStatus, errorThro
$(document).ajaxError(function(event, jqXHR, ajaxSettings, thrownError) { if (!jqXHR.getAllResponseHeaders()) { return; } });