From 0342a6f7dd85871806051867612add9a8496a1c0 Mon Sep 17 00:00:00 2001
From: Benjamin Ledel <benjamin@schule-plus.com>
Date: Wed, 26 Mar 2025 18:18:34 +0100
Subject: [PATCH] * wrong status code

---
 src/xapi/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xapi/views.py b/src/xapi/views.py
index f7a5b29..5f1c954 100644
--- a/src/xapi/views.py
+++ b/src/xapi/views.py
@@ -325,7 +325,7 @@ class CreateStatement(APIView):
                     "provider": "not found",
                 },
                 safe=False,
-                status=status.HTTP_400_BAD_REQUEST,
+                status=status.HTTP_401_UNAUTHORIZED,
             )
 
         provider = provider_auth.provider
@@ -471,7 +471,7 @@ class CreateTANStatement(APIView):
                     "provider": "not found",
                 },
                 safe=False,
-                status=status.HTTP_400_BAD_REQUEST,
+                status=status.HTTP_401_UNAUTHORIZED,
             )
 
         provider = provider_auth.provider
-- 
GitLab