We are writing a REST like set of services and we are returning errors as different StatusCodes.
In our client application we we prefer if our work flow did not require us to catch and cast an exception to discover the error code.
Is there a way to tell the WebClient or HttpWebRequest to stop throwing exceptions when it encounters a StatusCode other than 200?