Skip to content

Kirby 5.1.3

$exception->getHttpCode()

Returns the HTTP code that corresponds with the exception

$exception->getHttpCode(): int

Return type

int

This method modifies the existing $exception object it is applied to and returns it again.

Parent class

Kirby\Exception\Exception