RedirectNotAllowed
Less than 1 minute
RedirectNotAllowed
Exception thrown when a redirection is received on a non-GET HTTP request.
class RedirectNotAllowed extends \Hazaar\HTTP\Exception\ExceptionUsed to indicate that an HTTP redirection status code was returned for a request method that does not allow redirection.
Methods
__construct
Constructs a RedirectNotAllowed exception with a descriptive error message.
public __construct(int $status): voidThis exception is thrown when a non-GET request receives an HTTP redirection status code.
Parameters
| Parameter | Type | Description |
|---|---|---|
$status | int | the HTTP status code for the redirection |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000