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);
    }