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;
    }
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;
    }
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 ; }
Gets the current HTTP Status.
If none is set, it assumes HTTP_STATUS_OK

@since Symphony 2.3.2

@return integer
Gets the current HTTP Status . If none is set it assumes HTTP_STATUS_OK