ImATeapot
Less than 1 minute
ImATeapot
HTTP 418 I'm a teapot response class.
class ImATeapot extends \Hazaar\Controller\Response\HTTP\ResponseThis response is a humorous reference to the Hyper Text Coffee Pot Control Protocol (HTCPCP). It indicates that the server refuses the attempt to brew coffee with a teapot.
Methods
__construct
Constructs the HTTP 418 I'm a teapot response.
public __construct(?string $content, string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 418 and sets the content type and optional content body.
Parameters
| Parameter | Type | Description |
|---|---|---|
$content | string | the optional content body of the response |
$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