'Not Getting Value property of HttpResponseMessage in variable

I am calling an API endpoint which returns an HttpResponseMessage object with custom error message

Request.CreateResponse(HttpStatusCode.Forbidden, new { Message = "Custom Error Message" });

While debugging I found below value property enter image description here

But when I catch the response in normal variable am unable to see the custom error message property anywhere in content body. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source