Each 5xx error is a server fail

This commit is contained in:
Michael 2022-05-14 13:49:01 +00:00
parent 689b71c696
commit f0bfa9a690

View File

@ -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;
}