better handling of HTTPErrors
Merge pull request #17 from mrambossek/master

better handling of HTTPErrors