public function iGetAResponseWithAStatusCodeOf($code)
    {
        $actual = $this->getGuzzleResponse()->getStatusCode();

        if ($actual != $code) {
            throw new ClientErrorResponseException(
                'Actual status code ' . $actual . ' does not match expected ' .
                'status code ' . $code . ' with message: ' .
                $this->getGuzzleResponse()->getMessage()
            );
        }
    }
public function iGetAResponseWithAStatusCodeOf($code)
    {
        $actual = $this->getGuzzleResponse()->getStatusCode();

        if ($actual != $code) {
            throw new ClientErrorResponseException(
                'Actual status code ' . $actual . ' does not match expected ' .
                'status code ' . $code . ' with message: ' .
                $this->getGuzzleResponse()->getMessage()
            );
        }
    }
public function iGetAResponseWithAStatusCodeOf ( $ code ) { $ actual = $ this -> getGuzzleResponse ( ) -> getStatusCode ( ) ; if ( $ actual != $ code ) { throw new ClientErrorResponseException ( 'Actual status code ' . $ actual . ' does not match expected ' . 'status code ' . $ code . ' with message: ' . $ this -> getGuzzleResponse ( ) -> getMessage ( ) ) ; } }
Checks status code in reponse

Example: And I get a response with a status code of 503
Example: Then I get a response with a status code of 503

@param string $code Expected HTTP status code

@Then I get a response with a status code of :code
Checks status code in reponse