mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
[WIP] Change status code to 404 rather than 400.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user