Skip to content

Commit 3943b56

Browse files
Add support for 429 Too Many Requests HTTP status code
1 parent bcbd7aa commit 3943b56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cloudinary/base_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def call_json_api(method, api_url, payload, timeout, headers, proxy = nil, user
5757
when 403 then NotAllowed
5858
when 404 then NotFound
5959
when 409 then AlreadyExists
60-
when 420 then RateLimited
60+
when 420, 429 then RateLimited
6161
when 500 then GeneralError
6262
else raise GeneralError.new("Server returned unexpected status code - #{response.status} - #{response.body}")
6363
end

0 commit comments

Comments
 (0)