Finally returning correct HTTP status codes
This commit is contained in:
@@ -106,7 +106,7 @@ async def patch_event_presentation_json(
|
||||
else:
|
||||
return mk_resp(data=event_presentation_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 Event Presentation ### patch_event_presentation_json() ###
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ async def get_event_presentation_obj(
|
||||
event_presentation_dict = event_presentation_obj.dict(by_alias=by_alias, exclude_unset=exclude_unset)
|
||||
pass
|
||||
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=event_presentation_dict)
|
||||
#return mk_resp(data=event_presentation_obj)
|
||||
|
||||
Reference in New Issue
Block a user