code: function(response) {
              if (!svgCache[url]) {
                svgCache[url] = angular.element('<div>').append(response)[0].querySelector('svg');
              }
              resolve(svgCache[url]);
            }
docs: Catch HTTP or generic errors not related to incorrect icon IDs.