Skip to content

Kirby 5.0.1

Header::status()

Sends a status header

Header::status(int|string|null $code = null, bool $send = true): string|void

Parameters

Name Type Default Description
$code intorstringornull null The HTTP status code
$send bool true If set to false the header will be returned instead

Parent class

Kirby\Http\Header