src/net/CurlResponse.php
public function getStatus ()
		{
			if (!$this->_status)
			{
				$this->_status = self::S_UNKNOWN;

				$headers = array_reverse($this->_headers);
				foreach ($headers as $header)
				{
					preg_match("/HTTP\/1.1 (\d{3})/", $header, $match);
					if (isset($match[ 1 ]))
					{
						$this->_status = (int) $match[ 1 ];
						break;
					}
				}
			}

			return $this->_status;
		}
public function getStatus ()
		{
			if (!$this->_status)
			{
				$this->_status = self::S_UNKNOWN;

				$headers = array_reverse($this->_headers);
				foreach ($headers as $header)
				{
					preg_match("/HTTP\/1.1 (\d{3})/", $header, $match);
					if (isset($match[ 1 ]))
					{
						$this->_status = (int) $match[ 1 ];
						break;
					}
				}
			}

			return $this->_status;
		}
public function getStatus ( ) { if ( ! $ this -> _status ) { $ this -> _status = self :: S_UNKNOWN ; $ headers = array_reverse ( $ this -> _headers ) ; foreach ( $ headers as $ header ) { preg_match ( "/HTTP\/1.1 (\d{3})/" , $ header , $ match ) ; if ( isset ( $ match [ 1 ] ) ) { $ this -> _status = ( int ) $ match [ 1 ] ; break ; } } } return $ this -> _status ; }
Returns response status.

@return int
Returns response status .