Skip to content

Commit

Permalink
Add builder function for HTTP 429 Too Many Requests status (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee authored and fafhrd91 committed Jun 21, 2019
1 parent 47fab0e commit 1a24ff8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actix-http/src/httpcodes.rs
Expand Up @@ -61,6 +61,7 @@ impl Response {
STATIC_RESP!(RangeNotSatisfiable, StatusCode::RANGE_NOT_SATISFIABLE);
STATIC_RESP!(ExpectationFailed, StatusCode::EXPECTATION_FAILED);
STATIC_RESP!(UnprocessableEntity, StatusCode::UNPROCESSABLE_ENTITY);
STATIC_RESP!(TooManyRequests, StatusCode::TOO_MANY_REQUESTS);

STATIC_RESP!(InternalServerError, StatusCode::INTERNAL_SERVER_ERROR);
STATIC_RESP!(NotImplemented, StatusCode::NOT_IMPLEMENTED);
Expand Down

0 comments on commit 1a24ff8

Please sign in to comment.