Skip to content

Commit f6dcb69

Browse files
author
Fabian
authored
[FEATURE] adding too many requests error (plangrid#120)
* adding too many requestss call * fix formatting
1 parent 48a6187 commit f6dcb69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flask_rebar/errors.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ class UnprocessableEntity(HttpJsonError):
113113
http_status_code, default_message = 422, "Unprocessable Entity"
114114

115115

116+
class TooManyRequests(HttpJsonError):
117+
http_status_code, default_message = 429, "Too Many Requests"
118+
119+
116120
class InternalError(HttpJsonError):
117121
http_status_code, default_message = 500, "Internal Server Error"
118122

0 commit comments

Comments
 (0)