How to trap 403 errors in C#
<p>I have a TRY / Catch in my C# code and I want to trap a 403 error so that I can send the user to a registration page.</p>

<p>Is there a property in EXCEPTION for status code (403) or do I have to parse the message ({"The HTTP request was forbidden with client authentication scheme 'Negotiate'."}) ?</p>

<p>I have the following </p>

<p>try</p>

<p>access web service</p>

<p>catch (Exception err)</p>

<p>So I want to be able to find the 403 code in Exception, or should I be using something other than Exception here ?</p>
