From c4ad9a8e400a694bf13140a7976af998e0d47b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 23 Mar 2022 15:27:41 +0000 Subject: [PATCH] Error 404 --- api/kiwi_vpn_api/routers/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/kiwi_vpn_api/routers/user.py b/api/kiwi_vpn_api/routers/user.py index 935f066..95f2576 100644 --- a/api/kiwi_vpn_api/routers/user.py +++ b/api/kiwi_vpn_api/routers/user.py @@ -111,7 +111,7 @@ async def add_user( status.HTTP_400_BAD_REQUEST: Responses.NOT_INSTALLED, status.HTTP_401_UNAUTHORIZED: Responses.NEEDS_USER, status.HTTP_403_FORBIDDEN: Responses.NEEDS_ADMIN, - status.HTTP_409_CONFLICT: Responses.ENTRY_DOESNT_EXIST, + status.HTTP_404_NOT_FOUND: Responses.ENTRY_DOESNT_EXIST, }, response_model=User, ) @@ -132,7 +132,7 @@ async def remove_user( # fail if deletion was unsuccessful if user is None or not user.delete(db): - raise HTTPException(status_code=status.HTTP_409_CONFLICT) + raise HTTPException(status_code=status.HTTP_404_NOT_FOUND) @router.post(