ポジローぽけっと

昨日より今日、今日より明日を信じて、トライトライ

ajax requestへのresponseがステータス200なのに、persererrorでerror/failとなってしまったら

ajaxのdataTypeと実際のdataTypeが一致しているか確認する。
応答がない場合は、dataTypeは不要。

$.ajax({
    url: "hoge.php",   // リクエスト送信先URL
    type: "POST",
    data: {hoge:"hoge"}
    dataType: 'json'
})

参考

jQuery.ajax(options) - jQuery 日本語リファレンス