I have a controller, and a method as defined...
[HttpPost] public ActionResult UpdateUser(UserInformation model){ // Instead of throwing exception thr
Best way I have found is as follows:
// Return error status and custom message as 'errorThrown' parameter of ajax request return new HttpStatusCodeResult(400, "Ajax error test");