src/Response.php
private function setStatus($statusCode, $reasonPhrase = '')
	{
		if ($reasonPhrase === '' && isset(self::$reasonPhrases[$statusCode])) {
			$reasonPhrase = self::$reasonPhrases[$statusCode];
		}

		$this->statusCode = $statusCode;
		$this->reasonPhrase = $reasonPhrase;

		return $this;
	}
private function setStatus($statusCode, $reasonPhrase = '')
	{
		if ($reasonPhrase === '' && isset(self::$reasonPhrases[$statusCode])) {
			$reasonPhrase = self::$reasonPhrases[$statusCode];
		}

		$this->statusCode = $statusCode;
		$this->reasonPhrase = $reasonPhrase;

		return $this;
	}
Set the status.

@param int $statusCode
@param string $reasonPhrase = ''
@return $this