Gets the current HTTP Status.
If none is set, it assumes HTTP_STATUS_OK

@since Symphony 2.3.2

@return integer
168864
public function getHttpStatusCode()
    {
        // Legacy check
        if ($this->_status != null) {
            $this->setHttpStatus($this->_status);
        }

        if (isset($this->_headers['status'])) {
            return $this->_headers['status']['response_code'];
        }

        return self::HTTP_STATUS_OK;
    }
788673
public function getStatusString()
    {
        if (!empty(TicketMessageInterface::STATUSES[$this->status])) {
            return TicketMessageInterface::STATUSES[$this->status];
        }

        return TicketMessageInterface::STATUSES[0];
    }
113805
public function getStatus(): bool
    {
        foreach ($this->requestVersion() as $key => $version) {
            if (! Str::contains($key, 'dev')) {
                continue;
            }

            if (version_compare($version['version'], $this->currentVersion, '>')) {
                return true;
            }
        }

        return false;
    }
1180191
@Transient
    public String getStatus()
    {
        if(hasFailed()) return FAILED; 
        if(hasSucceeded()) return SUCCESS; 
        if(ignored != 0) return IGNORED; 
        return NOT_RUNNED; 
    }
1360914
public function GetHttpVersion () {
		if ($this->httpVersion === NULL) {
			$server = & $this->request->GetGlobalCollection('server');
			$this->httpVersion = isset($server['SERVER_PROTOCOL'])
				? $server['SERVER_PROTOCOL']
				: 'HTTP/1.1';
		}
		return $this->httpVersion;
	}
958185
public function getStatusString()
    {
        if (array_key_exists($this->status, TicketMessageInterface::STATUSES)) {
            return TicketMessageInterface::STATUSES[$this->status];
        }

        return TicketMessageInterface::STATUSES[0];
    }
494233
public function getStatus()
    {
        if (is_null($this->getOrder())) {
            return;
        }

        $status = $this->getOrderPaymentStatusFinal();

        if (is_null($status)) {
            $status = $this->getOrderPaymentStatusPaymentValid();
        }
        if (is_null($status)) {
            $status = $this->getOrderPaymentStatusPayments();
        }

        return $status;
    }
534418
protected function getStatus()
    {
        if ($this->detail instanceof \Throwable) {
            $this->status = $this->createStatusFromException();
        }

        return $this->status;
    }
957956
public function status()
    {
        $this->_MBPush();
        if (!($fp = $this->_Connect())) {
            $this->_MBPop();

            return false;
        }

        $req = pack('nnNN', SEARCHD_COMMAND_STATUS, VER_COMMAND_STATUS, 4, 1); // len=4, body=1
        if (!($this->_Send($fp, $req, 12)) ||
            !($response = $this->_GetResponse($fp, VER_COMMAND_STATUS))
        ) {
            $this->_MBPop();

            return false;
        }

        substr($response, 4); // just ignore length, error handling, etc
        $p = 0;
        list($rows, $cols) = array_values(unpack('N*N*', substr($response, $p, 8)));
        $p += 8;

        $res = array();
        for ($i = 0; $i < $rows; ++$i) {
            for ($j = 0; $j < $cols; ++$j) {
                list(, $len) = unpack('N*', substr($response, $p, 4));
                $p += 4;
                $res[$i][] = substr($response, $p, $len);
                $p += $len;
            }
        }

        $this->_MBPop();

        return $res;
    }
15847
public function getStatus(){
        $rest = $this->getService( self::API_VPN_CLIENT_STATUS);
        $rest->GET();

        return $rest->getResult( models\VPN\Client\Status::class);
    }
495006
public function current()
    {
        $port = Current::port();
        if (! $port || ! $prefix = $port->prefix()) {
            return $this->to($this->request->getPathInfo());
        }

        return $this->to($this->getPathInfo());
    }
1191325
public function getStatus()
    {
        $status = get_instance()->server->stats();
        $now_time = getMillisecond();
        $exTime = $now_time - $this->lastTime;
        if ($exTime == 0) {
            $qps = 0;
        } else {
            $qps = (int) (($status['request_count'] - $this->lastReqTimes) / $exTime * 1000);
        }
        $this->lastTime = $now_time;
        $this->lastReqTimes = $status['request_count'];
        $status['isDebug'] = Start::getDebug();
        $status['isLeader'] = Start::isLeader();
        $status['qps'] = $qps;
        $status['system'] = PHP_OS;
        $status['Swoole_version'] = SWOOLE_VERSION;
        $status['SD_version'] = SwooleServer::version;
        $status['PHP_version'] = PHP_VERSION;
        $status['worker_num'] = $this->worker_num;
        $status['task_num'] = $this->task_num;
        $status['max_connection'] = $this->max_connection;
        $status['start_time'] = Start::getStartTime();
        $status['run_time'] = format_date(strtotime(date('Y-m-d H:i:s')) - strtotime(Start::getStartTime()));
        $poolStatus = $this->helpGetAllStatus();
        $status['coroutine_num'] = $poolStatus['coroutine_num'];
        $status['pool'] = $poolStatus['pool'];
        $status['model_pool'] = $poolStatus['model_pool'];
        $status['controller_pool'] = $poolStatus['controller_pool'];
        $status['ports'] = $this->portManager->getPortStatus();
        $data = ProcessManager::getInstance()->getRpcCall(SDHelpProcess::class)->getData(ConsulHelp::DISPATCH_KEY);
        if (!empty($data)) {
            foreach ($data as $key => $value) {
                $data[$key] = json_decode($value, true);
                foreach ($data[$key] as &$one) {
                    $one = $one['Service'];
                }
            }
        }
        $status['consul_services'] = $data;
        $this->pub('$SYS/'.getNodeName().'/status', $status);
    }
381524
public function getStatus(){

        // set response to json
        $this->setEndpoint('json');

        // get response
        $obj = json_decode( $this->get(), true);

        return array_get($obj, 'status', null);

    }
424436
public function getSiteStatus()
    {
        $result = $this->getSiteStatusInternal();
        $statusCode = (int)$result['statusCode'];

        if (($statusCode >= 200) && ($statusCode < 300)) {
            return 'OK';
        }

        $this->reportUnexpectedResponse($result, 1503511661);
    }
1238525
public static function GetCurrentProtocol () {
		$https_flag = (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') || (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off');
		return $https_flag ? 'https' : 'http';
	}
431949
public function getStatusAttribute()
    {
        if ($this->isActive()) {
            return self::STATUS_ACTIVE;
        }

        if ($this->isCanceled()) {
            return self::STATUS_CANCELED;
        }

        if ($this->isEnded()) {
            return self::STATUS_ENDED;
        }
    }
1284640
protected function getStatusResponse()
    {
        $request = new Request(
            'PUT',
            $this->resumeUri,
            ['Content-Range' => 'bytes */*']
        );

        return $this->requestWrapper->send($request, $this->requestOptions);
    }