From 583d1de06ac5c1f38ed9a33ec6a7a2e0f6cf72b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Thu, 31 Mar 2022 16:49:04 +0000 Subject: [PATCH] error messages --- api/kiwi_vpn_api/routers/_common.py | 2 +- api/kiwi_vpn_api/routers/device.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/kiwi_vpn_api/routers/_common.py b/api/kiwi_vpn_api/routers/_common.py index 2963863..fc8035c 100644 --- a/api/kiwi_vpn_api/routers/_common.py +++ b/api/kiwi_vpn_api/routers/_common.py @@ -36,7 +36,7 @@ class Responses: "content": None, } NEEDS_PERMISSION = { - "description": "You're not allowed that operation", + "description": "Operation not permitted", "content": None, } ENTRY_EXISTS = { diff --git a/api/kiwi_vpn_api/routers/device.py b/api/kiwi_vpn_api/routers/device.py index 933b9f4..4ec8876 100644 --- a/api/kiwi_vpn_api/routers/device.py +++ b/api/kiwi_vpn_api/routers/device.py @@ -61,7 +61,6 @@ async def add_device( status.HTTP_400_BAD_REQUEST: Responses.NOT_INSTALLED, status.HTTP_401_UNAUTHORIZED: Responses.NEEDS_USER, status.HTTP_403_FORBIDDEN: Responses.NEEDS_PERMISSION, - status.HTTP_404_NOT_FOUND: Responses.ENTRY_DOESNT_EXIST, }, response_model=User, )