PreconditionFailed
Less than 1 minute
PreconditionFailed
HTTP 412 Precondition Failed response class.
class PreconditionFailed extends \Hazaar\Controller\Response\HTTP\ResponseThis response indicates that the client has specified preconditions in its request headers that the server does not meet. This is typically used in conditional requests where the server cannot satisfy the conditions specified by the client.
Methods
__construct
Constructs the HTTP 412 Precondition Failed response.
public __construct(string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 412 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