Finally returning correct HTTP status codes

This commit is contained in:
Scott Idem
2021-08-10 19:06:40 -04:00
parent a1b9d3c518
commit cfd85435f2
29 changed files with 83 additions and 82 deletions

View File

@@ -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() ###