I was wondering if there's any way to ignore this 404 response from a server, because I'm importing a whole list of itemnumbers, and I don't want the whole process to stop just by 1 little 404 response.
Code:
string url = @"http://api.com/art,242;art,123;art,523";
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
using (Stream stream = response.GetResponseStream())
using (StreamReader reader = new StreamReader(stream))
{
html = reader.ReadToEnd();
}