ExpectationFailed
Less than 1 minute
ExpectationFailed
HTTP 417 Expectation Failed response class.
class ExpectationFailed extends \Hazaar\Controller\Response\HTTP\ResponseThis response code indicates that the expectation specified in the Expect request header field cannot be met by the server. This is typically used when the server cannot comply with the requirements of the client.
Methods
__construct
Constructs the HTTP 417 Expectation Failed response.
public __construct(string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 417 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