设置状态，状态变化时会触发`change`事件。
@method setStatus
@grammar setStatus( status[, statusText] );
@param {File.Status|String} status [文件状态值](#WebUploader:File:File.Status)
@param {String} [statusText=''] 状态说明，常在error时使用，用http, abort,server等来标记是由于什么原因导致文件错误。
192217
function( status, text ) {
    
                var prevStatus = statusMap[ this.id ];
    
                typeof text !== 'undefined' && (this.statusText = text);
    
                if ( status !== prevStatus ) {
                    statusMap[ this.id ] = status;
                    /**
                     * 文件状态变化
                     * @event statuschange
                     */
                    this.trigger( 'statuschange', status, prevStatus );
                }
    
            }
821585
function setStatus() {
  var statusEl = document.getElementById("status");
  var logoutButton = document.getElementById("logout-btn");

  if(matter.isLoggedIn){
    statusEl.innerHTML = "True";
    statusEl.style.color = 'green';
    // statusEl.className = statusEl.className ? ' status-loggedIn' : 'status-loggedIn';
    logoutButton.style.display='inline';
  } else {
    statusEl.innerHTML = "False";
    statusEl.style.color = 'red';
    logoutButton.style.display='none';
  }
}
1311878
def set_status(self, id, status, timeout, update_time, history=None):
        
        query = {'_id': {'$regex': '^' + id}}

        update = {
            '$set': {'status': status, 'timeout': timeout, 'updateTime': update_time},
            '$push': {
                'history': {
                    '$each': [history.serialize],
                    '$slice': -abs(current_app.config['HISTORY_LIMIT'])
                }
            }
        }
        return self.get_db().alerts.find_one_and_update(
            query,
            update=update,
            projection={'history': 0},
            return_document=ReturnDocument.AFTER
        )
822962
function (statusCode, text) {
                    var resp = this._response;
                    resp.writeHead(statusCode, {"Content-Type": "text/plain"});
                    resp.write([
                        "port    : " + this._options.port,
                        "method  : " + this._request.method,
                        "url     : " + this._request.url,
                        "root    : " + this._options.root,
                        "path    : " + this._filePath,
                        "headers : "
                        + JSON.stringify(this._request.headers, null, "\t\t"),
                        text
                    ].join("\n"));
                    resp.end();
                }
476312
public static Action status(final HttpStatus status) {
        return new Action(input -> {
            input.setStatus(status);
            return input;
        });
    }
683673
public function setStatus($event, $status)
    {
        $handle = (string) $this->connections->getCurrentConnectionKey();

        $this->statuses[$event][$handle] = $status;
    }
912459
function Request_setStatusCode(code) {
        if (!Type.isNumber(code)) {
            throw new error.HttpError(500, {code: code}, "Status code must be number type");
        }
        this.statusCode = code;
    }
360100
def set_status(self, status):
        
        self.status = status
        for callback in self._update_status_callbacks:
            callback(self)
1246725
def set_status(self, name, status):
        
        getattr(self.system, name).status = status
        return True
782428
function(status, reasonPhrase, headers) {
        var self = this;

        each(headers || reasonPhrase, function(value, name) {
          self.setHeader(name, value);
        });

        return this._super(status, typeof reasonPhrase === 'string' ? reasonPhrase : undefined);
      }
1259118
public function setStatusCode($statusCode, $statusText = null)
    {
        if ($statusText === null
            && array_key_exists((int) $statusCode, $this->statusTexts)
        ) {
            $statusText = $this->statusTexts[$statusCode];
        }

        $this->statusCode = (int) $statusCode;
        $this->statusText = (string) $statusText;
    }
1252845
function _setStatus(status, closeReason) {
        // Don't send a notification when the status didn't actually change
        if (status === exports.status) {
            return;
        }

        exports.status = status;

        var reason = status === STATUS_INACTIVE ? closeReason : null;
        exports.trigger("statusChange", status, reason);
    }
489478
public void setStatus(int statusCode, String reasonPhrase) {
		try {
			final Response response = getResponse();
			response.setStatusCode(statusCode);
			response.setReasonPhrase(reasonPhrase);
		} catch (ParseException e) {
			throw new IllegalArgumentException(e);
		}

	}
819258
public void updateStatus(int statusId, StatusUpdate update) {
		getResourceFactory().getApiResource("/status/" + statusId)
				.entity(update, MediaType.APPLICATION_JSON_TYPE).put();
	}
252936
function setStatus () {
  var statusEl = document.getElementById('status')
  var logoutButton = document.getElementById('logout-btn')

  if (devshare.getCurrentUser() !== null) {
    statusEl.innerHTML = 'True'
    statusEl.style.color = 'green'
    // statusEl.className = statusEl.className ? ' status-loggedIn' : 'status-loggedIn'
    logoutButton.style.display = 'inline'
  } else {
    statusEl.innerHTML = 'False'
    statusEl.style.color = 'red'
    logoutButton.style.display = 'none'
  }
}
908468
@SuppressLint("UseSparseArrays")
    public void addStatusUpdate(ChatMessageStatus status) {
        int unique = (status.getMessageId() + status.getProfileId() + status.getMessageStatus().name()).hashCode();
        if (statusUpdates == null) {
            statusUpdates = new HashMap<>();
        }
        statusUpdates.put(unique, status);
    }
588464
public void changeStatus(int newStatus)
    {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "changeStatus", new java.lang.Object[] { this, new Integer(newStatus) });

        _status = newStatus;

        if (tc.isEntryEnabled())
            Tr.exit(tc, "changeStatus");
    }