class HttpException extends RuntimeException implements HttpExceptionInterface
HttpException.
__construct(int $statusCode, string $message = null, Exception $previous = null, array $headers = array(), int|null $code = 0) | ||
int | getStatusCode() Returns the status code. | |
array | getHeaders() Returns response headers. | |
setHeaders(array $headers) Set response headers. |
int | $statusCode | |
string | $message | |
Exception | $previous | |
array | $headers | |
int|null | $code |
Returns the status code.
int | An HTTP response status code |
Returns response headers.
array | Response headers |
Set response headers.
array | $headers | Response headers |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/Exception/HttpException.html