AngularJS $http wrong http status on error
问题 I am trying to build a JSONP request with AngularJS's $http Service and on errors I am getting wrong http status code 404 instead of 500, and the body of the page is missing too. So here is the scenario: The URL I am calling returns a 500 Internal Server Error with a JSON output containing the error message: http://private.peterbagi.de/jsfiddle/ng500status/api.php?code=500&callback=test index.html (see it in action: http://private.peterbagi.de/jsfiddle/ng500status/ ) <!DOCTYPE HTML> <html