class ErrorResponse extends Response (View source)

HTTP response.

Properties

int $status HTTP response status. from Response
array $headers HTTP response headers. from Response
array $body Decoded JSON response body. from Response

Methods

void
__construct($status, array $headers, string $body, bool $raw = false)

Construct response.

from Response

Details

void __construct($status, array $headers, string $body, bool $raw = false)

Construct response.

Parameters

$status
array $headers
string $body
bool $raw

Return Value

void