http error does not depend on $rootScope, use a service instead
refactor http error template