I am using httpclient from Microsoft.Net.Http (version 2.2.22) to request some of my mvc pages. My page returns an HttpStatusCodeResult, for example:
return new HttpStatusCodeResult(clientResponse.StatusCode, "Blub Blub");
Using httpclient is no problem invoking the page. But I could not find a way to access the status description ("Blub Blub"). Is there a way to access the description? And if not, why doesn't Microsoft make it available? By the way, if I call the site from a browser (Chrome), the description is displayed as expected.
source
share