title: How to check if the page itself had a error loading, with API 23?
body: <p>I've tried to check if the page itself, and not the secondary resources, had problems with loading, by overriding <code>onReceivedError</code> in my WebView.</p>
  
  <pre><code>myWebView.setWebViewClient(new WebViewClient() {
      //...
  
      @Override
      public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {
  
          //do something with error.getErrorCode()
  
      }
  
      //...
  });
  </code></pre>
  
  <p>However, once the page load is completed, even if the page seems to have been loaded correctly sometimes I get junk calls of <code>onReceivedError</code>, and thus unable to determine if the page hasn't loaded actually (e.g., cache miss of the page itself).</p>
  
  <p>What can I do about it?</p>