Handle Ajax error
$.ajaxSetup({
dataType: 'json',
headers: getCsrfToken(),
statusCode: {
404: function () {
[...];
},
500: function () {
[...];
}
},
error: function (xhr, thrownError) {
console.log(xhr.status); console.log(xhr.responseText); console.log(xhr.responseXML); console.log(thrownError);
, [...]
Tue Sep 13 15:41:00 2022 - permalink -
-
http://