http: handle errors from twisted http client