Skip to content

Commit

Permalink
Fix for 1.6.0. Forgot to add TooManyRequests to supported auto-status…
Browse files Browse the repository at this point in the history
… error codes.
  • Loading branch information
cfchris committed Jul 3, 2024
1 parent 573a45b commit 103ac47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Relaxation/Relaxation.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ component
result.Success = false;
result.ErrorMessage = e.Message;
/* Allow called methods to throw special ErrorCodes to get specific HTTP status codes. */
if ( ListFindNoCase("NotAuthorized,ResourceNotFound,ClientError,ConflictError,ServerError,VerbNotFound", e.ErrorCode) ) {
if ( ListFindNoCase("NotAuthorized,ResourceNotFound,ClientError,ConflictError,ServerError,TooManyRequests,VerbNotFound", e.ErrorCode) ) {
result.Error = e.ErrorCode;
return result;
}
Expand Down

0 comments on commit 103ac47

Please sign in to comment.