次の ajax リクエストがあります。
jQuery.ajax({
async: true,
type: "GET",
url: url,
data: data,
dataType: "json",
success: function(results){
currentData = results;
},
error: function(xhr, ajaxOptions, thrownError){
if (xhr.status == 200) {
console.debug("Error code 200");
}
else {
currentData = {};
displayAjaxError(xhr.status);
}
}
});
何らかの理由で、エラー コールバックはイベントと呼ばれますが、http ステータス コードは 200 です。リクエストはOKです。どうしてこれなの?