Added tests
Added tests
Changed to use HTTPError
Added tests. Test coverage now 94%.