CoreFiles by mySites.guru
php_http_status_codes.php50 lines, 1,443 bytes, from Joomla_1.5.26-Stable-Full_Package.zip
Raw History Compare with 1.5.25
md5
9832b2800dcdc8440b3b6f5b20e9c4d8
sha1
683112ed030433fa1ed5260dea94ce80c71ae68d
sha256
668bfc8e605edca0683b151c7f76e26c7f7d0ae47aecd145bb063a7fec145598
<?php
//*******************************************************************
//php_http_status_codes list the http static codes as constants
//*******************************************************************
//by John Heinstein
//[email protected]
//*******************************************************************
//Version 0.1
//copyright 2004 Engage Interactive
//http://www.engageinteractive.com/dom_xmlrpc/
//All rights reserved
//*******************************************************************
//Licensed under the GNU General Public License (GPL)
//http://www.gnu.org/copyleft/gpl.html
//*******************************************************************
class php_http_status_codes {
	var $codes;

	function php_http_status_codes() {
		$this->codes = array(
			200 => 'OK',
			201 => 'CREATED',
			202 => 'Accepted',
			203 => 'Partial Information',
			204 => 'No Response',
			301 => 'Moved',
			302 => 'Found',
			303 => 'Method',
			304 => 'Not Modified',
			400 => 'Bad Request',
			401 => 'Unauthorized',
			402 => 'PaymentRequired',
			403 => 'Forbidden',
			404 => 'Not found',
			500 => 'Internal Error',
			501 => 'Not implemented',
			502 => 'Service temporarily overloaded',
			503 => 'Gateway timeout');
	} //php_http_status_codes

	function getCodes() {
		return $this->codes;
	} //getCodes

	function getCodeString($code) {
		return $this->codes[$code];
	} //getCodeString
} //class php_http_status_codes

?>

The same content is in 26 releases, Joomla 1.5.1 to 1.5.26. See them all, or every version of this file.