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