Constructor.
int|string $retryAfter The number of seconds or HTTP-date after which the request may be retried:
string $message The internal exception message:
\Exception $previous The previous exception:
integer $code The internal exception code:
Overrides HttpException::__construct
public function __construct($retryAfter = null, $message = null, \Exception $previous = null, $code = 0) {
$headers = array();
if ($retryAfter) {
$headers = array(
'Retry-After' => $retryAfter,
);
}
parent::__construct(503, $message, $previous, $headers, $code);
}