Skip to content

Kirby 4.2.0

Header::status()

Sends a status header

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

Parameters

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

Return type

string|void

Parent class

Kirby\Http\Header