Finally returning correct HTTP status codes
This commit is contained in:
@@ -106,7 +106,7 @@ async def post_organization_json(
|
||||
else:
|
||||
return mk_resp(data=organization_obj_in_result)
|
||||
else:
|
||||
return mk_resp(data=False, status_code=400) # Bad Request
|
||||
return mk_resp(data=False, status_code=400, response=response) # Bad Request
|
||||
# ### END ### API Organization ### post_organization_json() ###
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ async def patch_organization_json(
|
||||
else:
|
||||
return mk_resp(data=organization_obj_up_result)
|
||||
else:
|
||||
return mk_resp(data=False, status_code=400) # Bad Request
|
||||
return mk_resp(data=False, status_code=400, response=response) # Bad Request
|
||||
# ### END ### API Organization ### patch_organization_json() ###
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user