Each 5xx error is a server fail
This commit is contained in:
parent
689b71c696
commit
f0bfa9a690
|
@ -153,7 +153,7 @@ class APDelivery
|
||||||
$success = $response->isSuccess();
|
$success = $response->isSuccess();
|
||||||
$serverfail = $response->isTimeout();
|
$serverfail = $response->isTimeout();
|
||||||
if (!$success) {
|
if (!$success) {
|
||||||
if (!$serverfail && ($response->getReturnCode() == 500)) {
|
if (!$serverfail && ($response->getReturnCode() >= 500) && ($response->getReturnCode() <= 599)) {
|
||||||
$serverfail = true;
|
$serverfail = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user