I know that they are the same thing, but why does "OK" return instead of "200"? I also want to make sure that I am returning all possible status codes (i.e. 404), if applicable. If I don't get a 200, I get a long exception, which is useful, but I also need a "quick look".
Am I missing something?
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(i.ToString());
request.KeepAlive = false;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
catch (WebException err)
Response.Write("Error: " + err);