code: function(err) {
              var msg = angular.isString(err) ? err : (err.message || err.data || err.statusText);
              $log.warn(msg);
              reject(err);
            }
docs: Catch HTTP or generic errors not related to incorrect icon IDs.