span class="typeNameLabel">NotAuthorizedException</span>
extends <a href="ClientErrorException.html" title="class in jakarta.ws.rs">ClientErrorException</a></pre>
<div class="block">A runtime exception indicating request authorization failure caused by one of the following scenarios:
 <ul>
 <li>a client did not send the required authorization credentials to access the requested resource, i.e.
 <a href="core/HttpHeaders.html#AUTHORIZATION"><code>Authorization</code></a> HTTP header is missing in the request,