InternalServerError
Less than 1 minute
InternalServerError
HTTP 500 Internal Server Error response class.
class InternalServerError extends \Hazaar\Controller\ResponseExtends: Hazaar\Controller\Response
This response indicates that the server has encountered an unexpected condition that prevented it from fulfilling the request. It is a generic error message returned when no more specific message is suitable.
Methods
__construct
Constructs the HTTP 500 Internal Server Error response.
public __construct(string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 500 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