Embryo/Http/Message/Response.php
public function withStatus($status, $reasonPhrase = '')
        {
            $status = $this->filterStatus($status);
            $reasonPhrase = $this->filterReasonPhrase($status, $reasonPhrase);

            $clone = clone $this;
            $clone->status = $status;
            $clone->reasonPhrase = $reasonPhrase;
            return $clone;
        }
public function withStatus($status, $reasonPhrase = '')
        {
            $status = $this->filterStatus($status);
            $reasonPhrase = $this->filterReasonPhrase($status, $reasonPhrase);

            $clone = clone $this;
            $clone->status = $status;
            $clone->reasonPhrase = $reasonPhrase;
            return $clone;
        }
public function withStatus ( $ status , $ reasonPhrase = '' ) { $ status = $ this -> filterStatus ( $ status ) ; $ reasonPhrase = $ this -> filterReasonPhrase ( $ status , $ reasonPhrase ) ; $ clone = clone $ this ; $ clone -> status = $ status ; $ clone -> reasonPhrase = $ reasonPhrase ; return $ clone ; }
Returns an instance with the specified status code and, optionally, reason phrase.

@param int $status
@param string $reasonPhrase
@return static
@throws InvalidArgumentException
Returns an instance with the specified status code and optionally reason phrase .