Error 404
This commit is contained in:
parent
814a19d864
commit
c4ad9a8e40
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue