W3cubDocs

/Symfony 2.7

Symfony\Component\HttpKernel\Exception\HttpExceptionInterface

interface HttpExceptionInterface

Interface for HTTP error exceptions.

Methods

int getStatusCode()

Returns the status code.

array getHeaders()

Returns response headers.

Details

public int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code

public array getHeaders()

Returns response headers.

Return Value

array Response headers

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/HttpKernel/Exception/HttpExceptionInterface.html