title: Cordova InAppBrowser loaderror event not firing for Error 500
body: <p>I have an issue with InAppBrowser. I am trying to catch errors that might come from the website I'm loading and I'm simulating this by a faulty .htaccess, which produces an error 500.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>ref = cordova.InAppBrowser.open($openuri, '_blank', 'location=no,toolbar=no,zoom=no,enableviewportscale=no,disallowoverscroll=no');
  ref.addEventListener("loadstop",function() {
          .....
      });
  ref.addEventListener("loaderror",function() {
          alert('Toot');
      });
  ref.addEventListener('loadstart', function(event) {
          .....
  });
  </code></pre>
  
  <p>The website is opening and all the "loadstop" and "loadstart" events work correctly. However, when I deliberately make the page return an "error 500", the event "loaderror" is not firing.</p>
  
  <p>It does fire for other errors - like when there is no internet on the phone.</p>
  
  <p>Any ideas as to why this is happening are highly appreciated.</p>