title: Wget creates output file even when page does not exist
body: <p><strong>Is is possible to prevent Wget from making an output file when there is an error like 404.</strong></p>
  
  <p>When I run</p>
  
  <p><code>wget -O my.html <a href="http://sdfsdfdsf.sdfds" rel="nofollow noreferrer">http://sdfsdfdsf.sdfds</a></code></p>
  
  <p><a href="http://sdfsdfdsf.sdfds" rel="nofollow noreferrer">http://sdfsdfdsf.sdfds</a> does not exist but Wget still creates my.html</p>
  
  <hr/>
  
  <p>I am making a bash script and want to make sure it stops if wget can't get a valid file.</p>