Skip to content

Kirby 3.9.8

$responder->code()

Setter and getter for the status code

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

Parameters

Name Type Default
$code int|null null

Return type

int|Kirby\Cms\Responder

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

Parent class

Kirby\Cms\Responder