Gpf_Net_Http_Response::getResponseCode PHP Method

getResponseCode() public method

public getResponseCode ( )
        public function getResponseCode()
        {
            $headers = $this->getHeaders();
            if ($headers == false || !isset($headers['status'])) {
                return false;
            }
            preg_match('/.*?\\s([0-9]*?)\\s.*/', $headers['status'], $match);
            if (!isset($match[1])) {
                return false;
            }
            return $match[1];
        }