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(