Set and get the status for the response.
public status ( string $key = null, string $status = null ) : string | ||
$key | string | Optional. Set to `'code'` or `'message'` to return just the code or message of the status, otherwise returns the full status header. |
$status | string | The code or message of the status you wish to set. |
return | string | Returns the full HTTP status, with version, code and message or dending on $key just the code or message. |