@ Nonnull public final UnifiedResponse setStatusUnauthorized ( @ Nullable final String sAuthenticate ) { _setStatus ( HttpServletResponse . SC_UNAUTHORIZED ) ; if ( StringHelper . hasText ( sAuthenticate ) ) m_aResponseHeaderMap . setHeader ( CHttpHeader . WWW_AUTHENTICATE , sAuthenticate ) ; return this ; }
Special handling for returning status code 401 UNAUTHORIZED .