grommunio /
grommunio-sync
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * SPDX-License-Identifier: AGPL-3.0-only |
||
| 5 | * SPDX-FileCopyrightText: Copyright 2007-2016 Zarafa Deutschland GmbH |
||
| 6 | * SPDX-FileCopyrightText: Copyright 2020-2022 grommunio GmbH |
||
| 7 | * |
||
| 8 | * Exception sending a "503 Service Unavailable" to the mobile. |
||
| 9 | */ |
||
| 10 | |||
| 11 | class ServiceUnavailableException extends HTTPReturnCodeException { |
||
| 12 | protected $defaultLogLevel = LOGLEVEL_INFO; |
||
| 13 | protected $httpReturnCode = HTTP_CODE_503; |
||
| 14 | protected $httpReturnMessage = "Service Unavailable"; |
||
| 15 | protected $httpHeaders = []; |
||
| 16 | protected $showLegal = false; |
||
| 17 | |||
| 18 | public function __construct($message = "", $code = 0, $previous = null, $logLevel = false) { |
||
| 19 | parent::__construct($message, $code, $previous, $logLevel); |
||
| 20 | if (RETRY_AFTER_DELAY !== false) { |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 21 | $this->httpHeaders[] = 'Retry-After: ' . RETRY_AFTER_DELAY; |
||
| 22 | } |
||
| 23 | } |
||
| 24 | } |
||
| 25 |