I would like to return a json errormessage but at the moment in fiddler I cannot see this in the json panel:
string error = \"An error just happened\"; JsonResul
You can directly set the status code of the current HTTP response through Response property
Response.StatusCod = (int)HttpStatusCode.BadRequest; return Json(HttpStatusCode.BadRequest);