Skip to content

Commit

Permalink
change resource_exhausted error status code to 429
Browse files Browse the repository at this point in the history
part of Twirp protocol v7 keathley#63
  • Loading branch information
fishtreesugar authored Oct 11, 2021
1 parent 0e2a4b4 commit 518fc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twirp/error.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule Twirp.Error do
already_exists: 409, # Conflict
permission_denied: 403, # Forbidden
unauthenticated: 401, # Unauthorized
resource_exhausted: 403, # Forbidden
resource_exhausted: 429, # Too Many Requests
failed_precondition: 412, # Precondition Failed
aborted: 409, # Conflict
out_of_range: 400, # Bad Request
Expand Down

0 comments on commit 518fc3b

Please sign in to comment.