class ServiceUnavailableHttpException extends HttpException

Methods

__construct(int|string $retryAfter = null, string $message = null, Exception $previous = null, int|null $code = 0, array $headers = array())

No description

int
getStatusCode()

Returns the status code.

array
getHeaders()

Returns response headers.

setHeaders(array $headers)

Set response headers.

Details

__construct(int|string $retryAfter = null, string $message = null, Exception $previous = null, int|null $code = 0, array $headers = array())

Parameters

int|string $retryAfter The number of seconds or HTTP-date after which the request may be retried
string $message
Exception $previous
int|null $code
array $headers

int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code

array getHeaders()

Returns response headers.

Return Value

array Response headers

setHeaders(array $headers)

Set response headers.

Parameters

array $headers Response headers