I have a number of angular services (e.g. a user service) which make various HTTP calls and I'm wondering what the best practice would be for handling errors.  For example, I could do:function getAll(success, error) {    $http.get('/api/users').then(success, error);}Or I could do:function getAll(success) {    $http.get('/api/users').then(success, function(err) {        success([]);    });}The advantage of the former is it is more configurable in case I wanted to do something special.  However, the advantage of the second is that it keeps the controllers simpler and in the (hopefully rare) case that the server is down it won't simply throw an error but will just display blank/empty data.Is there any guideline or accepted best practice for this kind of situation?
Best practice for angular service return value
javascript;error handling;angularjs