I have the following code:
$http.get('someUrl').then(function(response){ //что-то }, function(error){ //что-то }); The server does not know someUrl, sends 404, but the first callback is executed, why? Version angular.js 1.3.15.
Update
I tried through the success and error methods - the same.
No 4xx error causes a callback error.