fetch resolves even if 404?
<p>Using this code : </p>

<pre><code>fetch('notExists') // &lt;---- notice 
    .then(
        function(response)
        {
           alert(response.status)
        }
    )
    .catch(function(err)
    {
       alert('Fetch Error : ', err);
    });
</code></pre>

<p>This promise <em>resolves</em>.</p>

<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API" rel="noreferrer">mdn</a></p>

<blockquote>
  <p>It returns a promise that resolves to the Response to that request,
   whether it is successful or not.</p>
</blockquote>

<p>Isn't it strange that a failed ajax request is resolved even if it goes to an non-existing resource ?</p>

<p>I mean  - what next ? a  <code>fetch</code> to a server which is down and still get a resolved promise ? </p>

<p>I know I can investigate at the <code>ok</code> property at the <code>response</code> object , but still - </p>

<p><strong>Question</strong></p>

<p>Why do a fetch gets resolved for   a completely bad request ( non existing resource  ). </p>

<p><a href="http://jsbin.com/pukurolego/1/edit?html,js,output" rel="noreferrer">BTW , jquery request  , does  get rejected</a></p>