Skip to content

Commit a347d9f

Browse files
committed
400 error should not shut things down
1 parent 5f86557 commit a347d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ldclient/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def throw_if_unsuccessful_response(resp):
9797

9898
def is_http_error_recoverable(status):
9999
if status >= 400 and status < 500:
100-
return (status == 408) or (status == 429) # request timeout / too many requests - all other 4xx are unrecoverable
100+
return (status == 400) or (status == 408) or (status == 429) # all other 4xx besides these are unrecoverable
101101
return True # all other errors are recoverable
102102

103103

0 commit comments

Comments
 (0)