diff --git a/lib/elastic_apm/central_config.rb b/lib/elastic_apm/central_config.rb index 0778041c8..54c5f99e2 100644 --- a/lib/elastic_apm/central_config.rb +++ b/lib/elastic_apm/central_config.rb @@ -75,7 +75,7 @@ def fetch_config resp = perform_request # rubocop:disable Lint/DuplicateBranch - case resp.status + case resp.status.code when 200..299 resp when 300..399