Throw an instance of `\HotMelt\HTTPErrorException` to break out of the regular controlf flow.
__construct(int $statusCode, string $message, array $headers = null)
intAn HTTP status code for this exception.
stringAn exception message.
arrayAdditional HTTP headers for this exception (optional).
statusCode :
An exception handler catching an instance of \HotMelt\HTTPErrorException should ensure that these headers are sent along with the response.
| type |
int |
|---|---|
headers :
An exception handler catching an instance of \HotMelt\HTTPErrorException should ensure that these headers are sent along with the response.
| type |
array |
|---|---|