Skip to content

Commit

Permalink
Add error variable for too many request (labstack#1181)
Browse files Browse the repository at this point in the history
* add error variable for too many request

* update errTooManyRequests
  • Loading branch information
suksest authored and vishr committed Sep 28, 2018
1 parent 1ae109c commit eb84122
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ var (
ErrForbidden = NewHTTPError(http.StatusForbidden)
ErrMethodNotAllowed = NewHTTPError(http.StatusMethodNotAllowed)
ErrStatusRequestEntityTooLarge = NewHTTPError(http.StatusRequestEntityTooLarge)
ErrTooManyRequests = NewHTTPError(http.StatusTooManyRequests)
ErrValidatorNotRegistered = errors.New("validator not registered")
ErrRendererNotRegistered = errors.New("renderer not registered")
ErrInvalidRedirectCode = errors.New("invalid redirect status code")
Expand Down

0 comments on commit eb84122

Please sign in to comment.