]> git.mxchange.org Git - friendica.git/commitdiff
Each 5xx error is a server fail
authorMichael <heluecht@pirati.ca>
Sat, 14 May 2022 13:49:01 +0000 (13:49 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 14 May 2022 13:49:01 +0000 (13:49 +0000)
src/Worker/APDelivery.php

index 9e2f259f34b83e51c7328a79c5fabeba0aa75a4e..051bde0a0ce9bdea0c26f30d794cc4e4ef64bc4f 100644 (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;
                                        }