public function isOk()
    {
        $codes = [
            static::STATUS_OK,
            static::STATUS_CREATED,
            static::STATUS_ACCEPTED,
            static::STATUS_NON_AUTHORITATIVE_INFORMATION,
            static::STATUS_NO_CONTENT
        ];

        return in_array($this->code, $codes);
    }
public function isOk()
    {
        $codes = [
            static::STATUS_OK,
            static::STATUS_CREATED,
            static::STATUS_ACCEPTED,
            static::STATUS_NON_AUTHORITATIVE_INFORMATION,
            static::STATUS_NO_CONTENT
        ];

        return in_array($this->code, $codes);
    }
public function isOk ( ) { $ codes = [ static :: STATUS_OK , static :: STATUS_CREATED , static :: STATUS_ACCEPTED , static :: STATUS_NON_AUTHORITATIVE_INFORMATION , static :: STATUS_NO_CONTENT ] ; return in_array ( $ this -> code , $ codes ) ; }
Check if the response was OK

@return bool
Check if the response was OK