This is related to my question on how to handle errors from jQuery AJAX calls. Several responses suggested that I use the \"error\" callback to display any errors from a jQ
If you're using MVC 3, then you can return an ActionResult in your controller that has the HTTP status code and status message together:
return new HttpStatusCodeResult(500, "Error message");
Then, in your error callback:
error: function (request, textStatus, errorThrown) {
alert(request.statusText);
}