diff --git a/core/src/client.rs b/core/src/client.rs
index 21afea47..26586f18 100644
--- a/core/src/client.rs
+++ b/core/src/client.rs
@@ -785,7 +785,7 @@ impl APIClient {
                         return Ok(response);
                     }
                     let body = response.bytes().await?;
-                    if retry_if_503 || status == StatusCode::SERVICE_UNAVAILABLE {
+                    if retry_if_503 && status == StatusCode::SERVICE_UNAVAILABLE {
                         // waiting for server to start
                         (Error::response_error(status, &body), true)
                     } else {