PAGE Methods

status()

Set or return page's http status code.

string status([ int code ])

Return

Status code

Parameter
Description
codeSet status code

Get current status code

$PAGE->status()
RETURN: 'HTTP/1.1 200 OK'

Set status code for this page

$PAGE->status(418)
RETURN: 'HTTP/1.1 418 I'm a teapot'