diff --git a/lib/rock_rms/error.rb b/lib/rock_rms/error.rb index f40ac9d..f0396b9 100644 --- a/lib/rock_rms/error.rb +++ b/lib/rock_rms/error.rb @@ -34,9 +34,7 @@ def on_complete(env) raise RockRMS::ServiceUnavailable, error_message(env) when 504 raise RockRMS::GatewayTimeout, error_message(env) - when 520 - raise RockRMS::CloudflareError, error_message(env) - when 522 + when 520, 521, 522 raise RockRMS::CloudflareError, error_message(env) when ERROR_STATUSES raise RockRMS::Error, error_message(env)