Although I've almost done it, this code doesn't exactly work for what I want to do. Is there a way I can catch specifically error code 403 in this catch block?
catch (WebException e)
{
if (e.Status == WebExceptionStatus.ProtocolError)
{
Logger.Error(e.ToString());
Console.ReadKey(true);
return;
}
throw;
}