change exception for a 401 on error
Merge pull request #102 from alberts-tid/bug/tenant_token_headers

change exception for a 401 on error