title: Accessing HTTP status code while using WCF client for accessing RESTful services
body: <p>Thanks to <a href="https://stackoverflow.com/questions/835839/client-configuration-to-consume-wcf-json-web-service/4535043#4535043">this answer</a>, I am now able to successfully call a JSON RESTful service using a WCF client. But that service uses HTTP status codes to notify the result. I am not sure how I can access those status codes since I just receive an exception on client side while calling the service. Even the exception doesn't have HTTP status code property. It is just buried in the exception message itself.</p>
  
  <p><img src="https://i.stack.imgur.com/Dz7Dt.png" alt="alt text"></p>
  
  <p>So the question is, how to check/access the HTTP status code of response when the service is called.</p>