I have this code:
$.ajax({ cache: false, url: \"/Admin/Contents/GetData\", data: { accountID: AccountID }, success: function (data) { $(\
Replace your error function as follows...
error:function (xhr, ajaxOptions, thrownError){ if(xhr.status==404) { alert(thrownError); } }