In Asp.net Web Api, how do I set the status code of my response using an int or string, not the StatusCode enum?
In my case, I\'d like to return validation errors with
Convert your HttpStatusCode to integer:
response.StatusCode = Convert.ToInt32(HttpStatusCode.UnprocessableEntity)