title: Why jsonp in Angular always returns a 404 error as status?
body: <p>When if the server gives back various error (like 400, 403 etc.), I always get a 404 from the jsonp call results (in the error branch i mean)... is this an intended behaviour? How to get the real error code as the browser console does? I.e., 400 for 400, 500 for 500, and not always 404?</p>
  
  <p>Here is my code (please replace YOUR_LINK_HERE with any link you would like to test):</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="angularApp"&gt;
     &lt;head&gt;
        &lt;meta charset="utf-8"&gt;
        &lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"&gt;
  
        &lt;title&gt;Boxkeeply&lt;/title&gt;
              &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular.min.js"&gt;&lt;/script&gt; 
  
       &lt;script type="text/javascript"&gt;
       angular.module('angularApp', [])
  
       .controller('MainCtrl', function($scope, $rootScope, $http) {
  
            var JsonURI = "YOUR_LINK_HERE?callback=JSON_CALLBACK";
  
            $http.jsonp(JsonURI).
                success(function(data, status, headers, config) {
                  if(data.httpResponse.statusCode==200){
                    alert("success!")
  
  
                  }
                  else{
  
  
                  }
              }).
              error(function(data, status, headers, config) {       
                  alert("error code: "+status)
              });      
        });
  
       &lt;/script&gt;
     &lt;/head&gt;
     &lt;body ng-controller="MainCtrl"&gt;
  
  
     &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thank you in advace!</p>