NotAcceptable
Less than 1 minute
NotAcceptable
HTTP 406 Not Acceptable response class.
class NotAcceptable extends \Hazaar\Controller\Response\HTTP\ResponseThis response indicates that the server cannot produce a response matching the list of acceptable values defined in the request's proactive content negotiation headers. This is typically used when the client specifies strict requirements for the response format that the server cannot fulfill.
Methods
__construct
Constructs the HTTP 406 Not Acceptable response.
public __construct(string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 406 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