public __construct ( integer $status = 200, array $headers = [], string | null | resource | Psr\Http\Message\StreamInterface $body = null, string $version = '1.1', string | null $reason = null ) | ||
$status | integer | Status code |
$headers | array | Response headers |
$body | string | null | resource | Psr\Http\Message\StreamInterface | Response body |
$version | string | Protocol version |
$reason | string | null | Reason phrase (when empty a default will be used based on the status code) |