src/Guzzle/Http/Message/Response.php
public function setStatus($statusCode, $reasonPhrase = '')
    {
        $this->statusCode = (int) $statusCode;

        if (!$reasonPhrase && isset(self::$statusTexts[$this->statusCode])) {
            $this->reasonPhrase = self::$statusTexts[$this->statusCode];
        } else {
            $this->reasonPhrase = $reasonPhrase;
        }

        return $this;
    }
public function setStatus($statusCode, $reasonPhrase = '')
    {
        $this->statusCode = (int) $statusCode;

        if (!$reasonPhrase && isset(self::$statusTexts[$this->statusCode])) {
            $this->reasonPhrase = self::$statusTexts[$this->statusCode];
        } else {
            $this->reasonPhrase = $reasonPhrase;
        }

        return $this;
    }
public function setStatus ( $ statusCode , $ reasonPhrase = '' ) { $ this -> statusCode = ( int ) $ statusCode ; if ( ! $ reasonPhrase && isset ( self :: $ statusTexts [ $ this -> statusCode ] ) ) { $ this -> reasonPhrase = self :: $ statusTexts [ $ this -> statusCode ] ; } else { $ this -> reasonPhrase = $ reasonPhrase ; } return $ this ; }
Set the response status

@param int    $statusCode   Response status code to set
@param string $reasonPhrase Response reason phrase

@return self
@throws BadResponseException when an invalid response code is received
Set the response status