title: How to get HTTP status code of <img> tags
body: <p>I have a page with a lot of images that are generated server-side depending on user actions. And when image loads successfully I'm happy, but when there is an error on the server I have to act according to what an error occurred.</p>
  
  <p>For example: </p>
  
  <ul>
  <li>500 code: do this stuff.</li>
  <li>503 code: do that stuff</li>
  </ul>
  
  <p>and so on.</p>
  
  <p><strong>So, my question</strong>: is there any way to get status code within "img" tag on-error event handler? </p>