yii\httpclient\Response::getIsOk PHP Method

getIsOk() public method

Checks if response status code is OK (status code = 20x)
public getIsOk ( ) : boolean
return boolean whether response is OK.
    public function getIsOk()
    {
        return strncmp('20', $this->getStatusCode(), 2) === 0;
    }