How to get the jQuery $.ajax error response text?
Try:
error: function(xhr, status, error) { var err = eval("(" + xhr.responseText + ")"); alert(err.Message);}
For me, this simply works:
error: function(xhr, status, error) { alert(xhr.responseText);}
Look at the responseText
property of the request parameter.