Skip to content

Commit 170cbbc

Browse files
SK-2813: fixed literal 400 in utils is now replaced with constant
1 parent 01a2356 commit 170cbbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

skyflow/utils/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def handle_json_error(err, data, request_id, logger):
509509
for resp in responses:
510510
resp_status = resp.get(ResponseField.STATUS, HttpStatusCode.INTERNAL_SERVER_ERROR)
511511
resp_body = resp.get(ResponseField.BODY, {})
512-
if isinstance(resp_status, int) and resp_status >= 400:
512+
if isinstance(resp_status, int) and resp_status >= HttpStatusCode.BAD_REQUEST:
513513
status_code = resp_status
514514
error_msg = resp_body.get(ResponseField.ERROR)
515515
if error_msg:

0 commit comments

Comments
 (0)