Finally returning correct HTTP status codes
This commit is contained in:
@@ -150,7 +150,7 @@ async def get_account_obj_post_list(
|
||||
post_result_list.append(None)
|
||||
response_data = post_result_list
|
||||
else:
|
||||
return mk_resp(data=False, status_code=400) # Bad Request
|
||||
return mk_resp(data=False, status_code=400, response=response) # Bad Request
|
||||
|
||||
return mk_resp(data=response_data)
|
||||
# ### END ### API Post ### get_account_obj_post_list() ###
|
||||
|
||||
Reference in New Issue
Block a user