Unify HTTP error handling and refactor
Don't try to reuse auth token