raise HTTPError instead of generic exception
fix tests for connection