Catch HTTP errors (504, 500, whatever) when doing r.login()