function validateRequest($result)
	{
		$statusCodes = array(
			"200" => "",
			"304" => "Not Modified",
			"400" => "Bad Request",
			"401" => "Unauthorized: Authentication credentials were missing or incorrect",
			"403" => "Forbidden: The request is understood, but it has been refused",
			"404" => "Not Found",
			"406" => "Not Acceptable",
			"420" => "Enhance Your Calm",
			"500" => "Internal Server Error",
			"502" => "Bad Gateway",
			"503" => "Service Unavailable"
		);

		if (array_key_exists($this->lastStatusCode(), $statusCodes))
			return $this->lastStatusCode() . " " . $statusCodes[$this->lastStatusCode()];
		else {
			return $this->lastStatusCode() . " Unknow";
		}	
	}
function validateRequest($result)
	{
		$statusCodes = array(
			"200" => "",
			"304" => "Not Modified",
			"400" => "Bad Request",
			"401" => "Unauthorized: Authentication credentials were missing or incorrect",
			"403" => "Forbidden: The request is understood, but it has been refused",
			"404" => "Not Found",
			"406" => "Not Acceptable",
			"420" => "Enhance Your Calm",
			"500" => "Internal Server Error",
			"502" => "Bad Gateway",
			"503" => "Service Unavailable"
		);

		if (array_key_exists($this->lastStatusCode(), $statusCodes))
			return $this->lastStatusCode() . " " . $statusCodes[$this->lastStatusCode()];
		else {
			return $this->lastStatusCode() . " Unknow";
		}	
	}
function validateRequest ( $ result ) { $ statusCodes = array ( "200" => "" , "304" => "Not Modified" , "400" => "Bad Request" , "401" => "Unauthorized: Authentication credentials were missing or incorrect" , "403" => "Forbidden: The request is understood, but it has been refused" , "404" => "Not Found" , "406" => "Not Acceptable" , "420" => "Enhance Your Calm" , "500" => "Internal Server Error" , "502" => "Bad Gateway" , "503" => "Service Unavailable" ) ; if ( array_key_exists ( $ this -> lastStatusCode ( ) , $ statusCodes ) ) return $ this -> lastStatusCode ( ) . " " . $ statusCodes [ $ this -> lastStatusCode ( ) ] ; else { return $ this -> lastStatusCode ( ) . " Unknow" ; } }
It is a good idea to implement this also
It is a good idea to implement this also