I have a controller, and a method as defined...
[HttpPost] public ActionResult UpdateUser(UserInformation model){ // Instead of throwing exception thr
Based on what BigMike posted, this was what I did in my NON MVC/WEBAPI webproject.
Response.ContentType = "application/json"; Response.StatusCode = 400; Response.Write (ex.Message);
For what it is worth (and thanks BigMike!) It worked perfectly.