Skip to content

Kirby 6.0.0

$responder->code()

Setter and getter for the status code

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

Parameters

Name Type Default
$code intornull null

Return types

intornullorKirby\Cms\Responder

This method does not modify the existing $responder object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Responder