How can I check what the error value returned is in ajax callback error :
$.ajax({
url: "myurl",
type: 'POST',
dataType : "text",
data : ({
json : myjson
}),
success : function(data) {
},
error : function() {
alert ('error');
}
});