title: ERR_CONNECTION_REFUSED calls my $http sucess function
body: <p>Running my Angular app without a server running should return an error, or course. But this "ERR_CONNECTION_REFUSED" I see in my Chrome's console triggers my success function of my membership service:</p>
  
  <pre><code>    function login(user, onSuccess, onError){
          $http.post(_loginAddress, user)
               .success(loginSuccess)
               .success(onSuccess)
               .error(loginError)
               .error(onError);
      }
      function loginSuccess(data) {
          // this code executes with data = null here.
          if (data.ok === true) {
              ...
          }
      }
      function loginError(data, code) {
          ...
      }
  </code></pre>
  
  <p>The relevant section of the <a href="https://docs.angularjs.org/api/ng/service/$http#post" rel="nofollow noreferrer">$http docs</a> states:</p>
  
  <blockquote>
    <p>A response status code between 200 and 299 is considered a success status and will result in the success callback being called. Note that if the response is a redirect, XMLHttpRequest will transparently follow it, meaning that the error callback will not be called for such responses.</p>
  </blockquote>
  
  <p>Am I suppose to program my $http success() functions for possible false-positive?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><img src="https://i.stack.imgur.com/uL4N6.png" alt="enter image description here"></p>