src/ieu/Http/Response.php
public function setStatusCode($code)
	{
		if (!array_key_exists($code, self::$statusCodeMap)) {
			throw new InvalidArgumentException(sprintf('The HTTP stauts code %s is unknown.', $code));
		}

		$this->statusCode = $code;

		return $this;
	}
public function setStatusCode($code)
	{
		if (!array_key_exists($code, self::$statusCodeMap)) {
			throw new InvalidArgumentException(sprintf('The HTTP stauts code %s is unknown.', $code));
		}

		$this->statusCode = $code;

		return $this;
	}
public function setStatusCode ( $ code ) { if ( ! array_key_exists ( $ code , self :: $ statusCodeMap ) ) { throw new InvalidArgumentException ( sprintf ( 'The HTTP stauts code %s is unknown.' , $ code ) ) ; } $ this -> statusCode = $ code ; return $ this ; }
Sets the HTTP status code

@param integer $code  The status code

@return self
Sets the HTTP status code