UnprocessableEntity
Less than 1 minute
UnprocessableEntity
HTTP 422 Unprocessable Entity response class.
class UnprocessableEntity extends \Hazaar\Controller\Response\HTTP\ResponseThis response indicates that the request was well-formed but was unable to be followed due to semantic errors.
Methods
__construct
Constructs the HTTP 422 Unprocessable Entity response.
public __construct(string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 422 and allows specifying the content type, which defaults to text/html.
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