title: HTML5 download attribute error handling
body: <p>In html5 i am trying to use download attribute , here is a sample code</p>
  
  <pre><code>&lt;a href="/images/myw3schoolsimage.jpg" download&gt;
  </code></pre>
  
  <p>If a link is invalid or forbidden it still downloads a forbidden html error page or some other error page. Instead is there a way to check if the header is 200 or download resource if only accessible/exists?</p>