Skip to content

Kirby 5.0.4

$responder->code()

Setter and getter for the status code

$responder->code(int|null $code = null): int|Kirby\Cms\Responder

Parameters

Name Type Default
$code intornull null

Return types

intorKirby\Cms\Responder

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

Parent class

Kirby\Cms\Responder