nStatus.html" title="enum in jakarta.security.enterprise">AuthenticationStatus</a>&nbsp;responseUnauthorized()</pre>
<div class="block">Sets the response status to 401 (unauthorized).
 <p>
 As a convenience this method returns SEND_FAILURE, so this method can be used in
 one fluent return statement from an <a href="../../../../../../jakarta/security/enterprise/authentication/mechanism/http/HttpAuthenticationMechanism.html" title="interface in jakarta.security.enterprise.authentication.mechanism.http"><code>