team to understand how to identify when this occurs.</p>

<p>In the case of OAuth2, where an authentication server can invalidate credentials, you will need to inspect the
<code>HTTPURLResponse</code> or possibly the <code>Error</code> for when this occurs. This is commonly handled by the authentication
server returning a 401 status code and some additional header to indicate an OAuth2 failure occurred.</p>

<p>It is very important to understand how your authentication server works to be able to implement t