Rework rest.py . Raise HTTPError on failed request, handle special error 401 case and tell to run auth-cli