Each 5xx error is a server fail
This commit is contained in:
parent
689b71c696
commit
f0bfa9a690
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ class APDelivery
|
|||
$success = $response->isSuccess();
|
||||
$serverfail = $response->isTimeout();
|
||||
if (!$success) {
|
||||
if (!$serverfail && ($response->getReturnCode() == 500)) {
|
||||
if (!$serverfail && ($response->getReturnCode() >= 500) && ($response->getReturnCode() <= 599)) {
|
||||
$serverfail = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue