Forbidden
Less than 1 minute
Forbidden
HTTP 403 Forbidden response class.
class Forbidden extends \Hazaar\Controller\Response\HTTP\ResponseThis response code indicates that the server understands the request but refuses to authorize it. This is typically used when the client does not have permission to access the requested resource.
Methods
__construct
Constructs the HTTP 403 Forbidden response.
public __construct(string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 403 and sets the content type.
Parameters
| Parameter | Type | Description |
|---|---|---|
$contentType | string | The content type of the response. Defaults to text/html. |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000