Skip to content

Commit

Permalink
Raise CloudflareError for 522 response
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorbrooks committed May 30, 2024
1 parent 4341eeb commit b15190d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rock_rms/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def on_complete(env)
raise RockRMS::GatewayTimeout, error_message(env)
when 520
raise RockRMS::CloudflareError, error_message(env)
when 522
raise RockRMS::CloudflareError, error_message(env)
when ERROR_STATUSES
raise RockRMS::Error, error_message(env)
end
Expand Down

0 comments on commit b15190d

Please sign in to comment.