As I work on my application, I rely on a REST api to fetch my data. When I make a request like this:
$http.get('api/entity/' + $scope.entityId).success(/* DO STUFF */).error(/* DO STUFF */)
In the service, if the entityId is not found, I return a 404 error. I handle this in the error function by checking the status parameter and responding appropriately.
I find it frustrating that Angular throws an exception and clutters the javascript console. This seems to be occurring at Angular.js:8165.
Is there a way to communicate to Angular that I am capable of handling errors myself in a professional manner?
In simple terms, can I instruct Angular to refrain from displaying unnecessary output?
Thank you,