Skip to content

Kirby 5.0.4

$response->code()

Getter for the HTTP status code

$response->code(): int

Return type

int

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

Parent class

Kirby\Http\Response