Commit d077422a authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_api_style: post update status if status under 400

parent cd4f653e
......@@ -106,7 +106,7 @@ for erp5_action_key in erp5_action_dict.keys():
match = True
# If an object is created, 201 code is exptected
if mode == "post":
if response.getStatus() == 200:
if response.getStatus() < 400:
response.setStatus(201)
# If not search, job is done and we can return result
if mode != "allDocs":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment