title: Detect 415 HTTP code while loading an iframe
body: <p>The issue is quite simple, I've got a form which targets an iframe. When the form is submitted the load event fires off, so I can use it as a ajax fallback for upload picture functionality for IE8/IE9.</p>
  
  <pre><code>$('#iframe').load(function () {
      // do something
  });
  </code></pre>
  
  <p>This works ok, however the load event fires off even if I get 415 http code back and no response.</p>
  
  <p>How can I retrieve the HTTP status code from the loaded iframe? A solution that doesn't need any server-side adjustments would be really helpful.</p>