I have a couple of chained $ http combined with one $ http using $ q.all ([prmiseA, promB]). Everything works fine, I return data and errors are processed without problems.
Unless data is found on a particular HTTP call, and this is not an error.
I use the service for the logic branch from the user interface. And my call looks like this.
$scope.Loading = true;
var p = Service.Call(Param1, Param2);
p.then(function () {
$scope.Loading = false;
}, function (reason) {
$scope.Loading = false;
$scope.alerts.push({ msg: "Error loading information " + Param1, type: "danger" });
})
What I would like to do is handle 404 on a single url inside the "Service.Call" function. So the user interface code above remains untouched.
My problem is that if I add an error handler to a specific call that can return 404. Then all errors are "handled" and therefore I lose errors for this call.
" " $q?