- add $http support
- add support for http errors