MethodNotAllowed
Less than 1 minute
MethodNotAllowed
HTTP 405 Method Not Allowed response class.
class MethodNotAllowed extends \Hazaar\Controller\Response\HTTP\ResponseThis response indicates that the request method is known by the server but is not supported by the target resource. For example, an API may not allow calling DELETE on a resource.
Methods
__construct
Constructs the HTTP 405 Method Not Allowed response.
public __construct(string $contentType = 'text/html'): voidThis constructor initializes the response with a status code of 405 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