Skip to content

Commit 21c74a1

Browse files
committed
Update generic error parsing to include 4xx errors
1 parent cdf39b2 commit 21c74a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

botocore/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def _is_generic_error_response(self, response):
300300
# non sensical parsed data.
301301
# To prevent this case from happening we first need to check
302302
# whether or not this response looks like the generic response.
303-
if response['status_code'] >= 500:
303+
if response['status_code'] >= 400:
304304
if 'body' not in response or response['body'] is None:
305305
return True
306306

0 commit comments

Comments
 (0)