class HttpException extends RuntimeException implements HttpExceptionInterface
HttpException.
| __construct($statusCode, $message = null, Exception $previous = null, array $headers = array(), $code) | ||
| int | getStatusCode() Returns the status code. | |
| array | getHeaders() Returns response headers. | |
| setHeaders(array $headers) Set response headers. |
| $statusCode | ||
| $message | ||
| Exception | $previous | |
| array | $headers | |
| $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.
http://api.symfony.com/4.0/Symfony/Component/HttpKernel/Exception/HttpException.html