ServiceUnavailableHttpException

class ServiceUnavailableHttpException extends HttpException

ServiceUnavailableHttpException.

Methods

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

Constructor.

int getStatusCode()

Returns the status code.

from HttpException
array getHeaders()

Returns response headers.

from HttpException

Details

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

Constructor.

Parameters

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

int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code

array getHeaders()

Returns response headers.

Return Value

array Response headers