I'm working on a client for a webservice that returns standard Status Codes (404, 200 etc) as well a custom json message.
I haven't been able to find a property of the WebException that contains the custom message.
Any ideas on how to get a hold of the message?
Simple solution:
The WebException has the actual WebResponse available in the Response property. From here it is simply a matter of handling the response as per normal:
I'm using the NewtonSoft Json library to deserialise the Json response