I have a problem. I'm using $.ajaxError for global error handling in ajax requests. Somehow a $.post request is throwing the error, the status is 200. Why is it causing the error ? Could someone explain me the usage of $.ajaxError ?
Thanks
There is the code:
$('#haha').ajaxError(function(e, jqXHR, settings, exception) {
console.log(jqXHR.status);
console.log(exception.message);
});
EDIT
I have set the header to JSON, and the response was text. :)