public function status($status)
    {
        $httpStatus = (string) $this->response->getStatusCode();
        if (is_array($status) && !in_array($httpStatus, $status)) {
            throw new \RuntimeException(
                "Unexpected response status code: {$httpStatus}"
            );
        }

        if (is_string($status) && $httpStatus !== $status) {
            throw new \RuntimeException(
                "Unexpected response status code: {$httpStatus}"
            );
        }

        return $this;
    }
public function status($status)
    {
        $httpStatus = (string) $this->response->getStatusCode();
        if (is_array($status) && !in_array($httpStatus, $status)) {
            throw new \RuntimeException(
                "Unexpected response status code: {$httpStatus}"
            );
        }

        if (is_string($status) && $httpStatus !== $status) {
            throw new \RuntimeException(
                "Unexpected response status code: {$httpStatus}"
            );
        }

        return $this;
    }
public function status ( $ status ) { $ httpStatus = ( string ) $ this -> response -> getStatusCode ( ) ; if ( is_array ( $ status ) && ! in_array ( $ httpStatus , $ status ) ) { throw new \ RuntimeException ( "Unexpected response status code: {$httpStatus}" ) ; } if ( is_string ( $ status ) && $ httpStatus !== $ status ) { throw new \ RuntimeException ( "Unexpected response status code: {$httpStatus}" ) ; } return $ this ; }
Asserts the HTTP response status code.

@param string|string[] $status Expected status code(s)

@throws \RuntimeException If status code does not match

@return self
Asserts the HTTP response status code .