How to detect in WebView a 404 Error
<p>I have a <code>WebView</code> which i set the the <code>onError</code>  and the <code>onLoadEnd</code>.
The problem is that when i have a web page which returns a 404 not found error, i don't get it in the <code>onError</code> handler. I do get the <code>onLoadEnd</code> but there is no way to know that this is a 404 except the title. </p>

<p><a href="https://i.stack.imgur.com/WmJRt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WmJRt.png" alt="enter image description here"></a></p>

<p>Is there a way to detect that?
I was expecting that this would be handled by the <code>onError</code> callback. </p>