src/Http/Response.php
public function withStatus($code, $reasonPhrase = '')
    {
        $this->statusCode = (int)$code;
        if (!$reasonPhrase && isset(Protocol::$phrases[$this->statusCode])) {
            $reasonPhrase = Protocol::$phrases[$this->statusCode];
        }
        $this->reasonPhrase = $reasonPhrase;

        return $this;
    }
public function withStatus($code, $reasonPhrase = '')
    {
        $this->statusCode = (int)$code;
        if (!$reasonPhrase && isset(Protocol::$phrases[$this->statusCode])) {
            $reasonPhrase = Protocol::$phrases[$this->statusCode];
        }
        $this->reasonPhrase = $reasonPhrase;

        return $this;
    }
{@inheritdoc}