Unauthorised
Less than 1 minute
Unauthorised
Exception representing an authentication failure requiring authorization.
class Unauthorised extends \Hazaar\Auth\Adapter\Exception\ExceptionThis exception maps to HTTP status code 401 and can optionally emit a WWW-Authenticate: Basic header to trigger browser/client basic-auth prompts when used in HTTP Basic authentication flows.
Methods
__construct
Creates an unauthorized-authentication exception.
public __construct(bool $basic): voidParameters
| Parameter | Type | Description |
|---|---|---|
$basic | bool | when true, sends a WWW-Authenticate: Basic header |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000