why can't I read the error message in AngularJS from the following code
ModelState.AddModelError("field", "error");
return BadRequest(ModelState);
or
return BadRequest("error message");
return Content(System.Net.HttpStatusCode.BadRequest, new { field = "error"});
all I get when I catch that error is
{
data: "Bad request",
status: 400, headers: ..... ,
config: //POST method config,
statusText: "Bad Request"
}