From f0bfa9a6901dfbdcd0383657a1cbac00a47991aa Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 14 May 2022 13:49:01 +0000 Subject: [PATCH] Each 5xx error is a server fail --- src/Worker/APDelivery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/APDelivery.php b/src/Worker/APDelivery.php index 9e2f259f34..051bde0a0c 100644 --- a/src/Worker/APDelivery.php +++ b/src/Worker/APDelivery.php @@ -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; } -- 2.39.5