W3cubDocs

/Symfony 4.1

HttpExceptionInterface

interface HttpExceptionInterface

Interface for HTTP error exceptions.

Methods

int getStatusCode()

Returns the status code.

array getHeaders()

Returns response headers.

Details

int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code

array getHeaders()

Returns response headers.

Return Value

array Response headers

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/Exception/HttpExceptionInterface.html