title: Check if website is loading will all its resources in C# .NET Framework
body: <p>My goal is to make a request to web page which consists video player. The link looks like this:</p>
  
  <p><em>mywebsite</em>/620x439/9122600a</p>
  
  <p>but if you want to have better resolution you have to pass an argument with it, so the link looks like this:</p>
  
  <p><em>mywebsite</em>/620x439/9122600a?wersja=720p</p>
  
  <p>The problem is, that my program won't know if video from this link have better resolution, it have to figure it out itself. I had an idea to make a request to this URI and check the server response. I do it this way:</p>
  
  <pre><code>Uri targetUri = new Uri(videoPageURLHD);
  var request = (HttpWebRequest)WebRequest.Create(targetUri);
  var response = (HttpWebResponse)request.GetResponse();
  
  if (response.StatusCode == HttpStatusCode.OK)
  {
        //do something                  
  }
  else
  {
        //do something else                  
  }
  </code></pre>
  
  <p>The problem is, that no matter if video file with resolution exists or not, server always responds with HTTP 200, despite in debug console in web browser I can see that it failed to load resource -> <a href="https://i.stack.imgur.com/wFsvn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wFsvn.png" alt="Browser console response"></a></p>
  
  <p>The question is: is it possible to get this info about failing to load resource using request/Webclient/whatever? As an output I need simple true/false answer to question if this video have better resolution or not.</p>