Angular $http promise always resolving
<p>In every $http call with <code>.then(successFunc)</code> and <code>.catch(errFunc)</code> (alternatively <code>then(successFunc, errFunc)</code> the <code>then</code>/<code>success</code> is always called (the promise is successfully resolved).</p>

<p>Example</p>

<pre class="lang-js prettyprint-override"><code>$http.get('/some/resource') 
//   /some/resource --&gt; HTTP 400
    .then(function(response)
    {
        console.log('success');
    })
    .catch(function(reason)
    {
        console.log('error');
    })

// Console: 
// - success
</code></pre>

<p>Is this the intended behaviour or what causes this?</p>