In my application I am using a REST api to get my data. If a send a request like this
$http.get('api/entity/' + $scope.entityId).success(/* DO STUFF */).error(/* DO STUFF */)
In the service, if the entityId does not exist I return a 404. In the error function I catch it using the status (second parameter) and act on it in a proper way.
I'm being annoyed by the fact that angular if throwing an exception and pollutes the javascript console. It seem to happen on Angular.js:8165
It there any way to tell angular that I'm a grown up developer and I will handle what he sees as an error myself in a nice way?
In other words, can I tell angular to not output that crap?
Thanks,