I'm trying to return a 401 (unauthorized) response code from ASP.NET Web API web method (POST) but I get a 404. Am I doing something wrong?
throw new HttpResponseException(HttpStatusCode.Unauthorized); (or setting it on the HttpResponseMessage)
Thanks