public function __construct( int
$status = 200,
array
$headers =
[],
$body = null,
string
$version = '1.1',
string
$reason = null
) { $this->
assertStatusCodeRange($status);
$this->statusCode =
$status;
if ($body !== '' &&
$body !== null
) { $this->stream = Utils::
streamFor($body);
} $this->
setHeaders($headers);
if ($reason == '' &&
isset(self::PHRASES
[$this->statusCode
])) { $this->reasonPhrase = self::PHRASES
[$this->statusCode
];
} else {