src/rest/Connection.php
public function getResponseError(ResponseInterface $response)
    {
        $code = $response->getStatusCode();
        if ($code >= 200 && $code < 300) {
            return false;
        }

        return $response->getReasonPhrase();
    }
public function getResponseError(ResponseInterface $response)
    {
        $code = $response->getStatusCode();
        if ($code >= 200 && $code < 300) {
            return false;
        }

        return $response->getReasonPhrase();
    }
public function getResponseError ( ResponseInterface $ response ) { $ code = $ response -> getStatusCode ( ) ; if ( $ code >= 200 && $ code < 300 ) { return false ; } return $ response -> getReasonPhrase ( ) ; }
Method checks whether the response is an error.

@param ResponseInterface $response
@return false|string the error text or boolean `false`, when the response is not an error
Method checks whether the response is an error .