Status
by Nibin George
JavaScript
$(function() {
var url = "/testpage";
$.ajax(url,
{
error:function (xhr, ajaxOptions, thrownError){
alert(xhr.status);
switch (xhr.status) {
case 404:
// Desired Action.
}
},
complete: function(xhr, statusText){
alert(xhr.status);
}
});
});