From: Michael Date: Sat, 14 May 2022 13:49:01 +0000 (+0000) Subject: Each 5xx error is a server fail X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f0bfa9a6901dfbdcd0383657a1cbac00a47991aa;p=friendica.git Each 5xx error is a server fail --- 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; }