How To Get Error number in WebException Error?
try { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(\"site\"); HttpWebResponse response
For Get Error Number:
catch(System.Net.WebException e) { int errorNumber = (int)e.Status; }