[WIP] Change status code to 404 rather than 400.

This commit is contained in:
Adam Shimali
2016-03-01 15:51:22 +00:00
parent 993bdc8055
commit ac9adc292b
2 changed files with 3 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ def add_user_to_service(service_id, user_id):
if not user:
return jsonify(result='error',
message='User not found for id: {}'.format(user_id)), 400
message='User not found for id: {}'.format(user_id)), 404
if user in service.users:
return jsonify(result='error',