I'm using angularjs' $http service to query my backend server whether a resource exists or not. My backend responses with a 404 if the resource doesn't exist and with a 200 if it exists. I also implemented the second function passed to the promise in order to handle the case the resource doesn't exist.
Everything works like expected besides the fact that angular seems to log an error to the js console, if the resource doesn't exist: Failed to load resource: the server responded with a status of 404 (Not Found).
In my case this is no error and so I'd like angular to stop logging it as an error... just to keep the error console clean for real errors.