I\'m working on a service in WebAPI 2, and the endpoint currently returns an IHttpActionResult. I\'d like to return a status code 422, but since it\'s
IHttpActionResult
422
return Content((HttpStatusCode) 422, whatEver);
credit is for: Return content with IHttpActionResult for non-OK response
and your code must be <= 999
and please ignore codes between 100 to 200.