var resp = new HttpResponseMessage(HttpStatusCode.NotFound)
{
ReasonPhrase = "Nenhum produto encontrado"
};
throw new HttpResponseException(resp);
This code should return
404 No products found
But for some reason it is not working. Any idea? I'm using Visual Studio 2013 and IIS Express.
Print example (ignore the URL and use of HEAD, just to illustrate)