CsrfMismatch
Less than 1 minute
CsrfMismatch
Thrown by the CSRF middleware when an unsafe request has a missing or invalid token, or comes from another site.
class CsrfMismatch extends \Hazaar\ExceptionExtends: Hazaar\Exception
It is a 403, and distinct from other forbidden errors so an application can catch it and render a retry page.
Methods
__construct
public __construct(string $message = 'CSRF token missing or invalid', ?\Throwable $previous): voidParameters
| Parameter | Type | Description |
|---|---|---|
$message | string | |
$previous | Throwable |
Generated by Hazaar API Doc Generator on Sun, 08 Nov 2026 03:36:14 +0000