src/Response.php
public function status($value = null) {
        if ($value !== null) {
            if (!isset(self::$messages[$value])) {
                $this->headers('X-Original-Status', $value);
                $value = 500;
            }
            $this->status = (int)$value;
        }
        return $this->status;
    }
public function status($value = null) {
        if ($value !== null) {
            if (!isset(self::$messages[$value])) {
                $this->headers('X-Original-Status', $value);
                $value = 500;
            }
            $this->status = (int)$value;
        }
        return $this->status;
    }
Gets/sets the http status code.

@param int $value The new value if setting the http status code.
@return int The current http status code.
@throws \InvalidArgumentException The new status is not a valid http status number.