PreconditionRequired
Less than 1 minute
PreconditionRequired
HTTP 428 Precondition Required response class.
class PreconditionRequired extends \Hazaar\Controller\ResponseExtends: Hazaar\Controller\Response
This response indicates that the origin server requires the request to be conditional. This is typically used to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, while a third party has modified the state on the server, leading to a conflict.
Methods
__construct
Constructs the HTTP 428 Precondition Required response.
public __construct(string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 428 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 Fri, 04 Sep 2026 23:32:16 +0000