From 78ae14169ad67d2c46d408801bd63da2cb94f72b Mon Sep 17 00:00:00 2001 From: Jakub K Date: Thu, 1 Feb 2024 23:12:32 +0100 Subject: [PATCH] add Response --- jobposting/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jobposting/views.py b/jobposting/views.py index eb837a9..c0a12da 100644 --- a/jobposting/views.py +++ b/jobposting/views.py @@ -121,4 +121,5 @@ class GetAuthTokenView(APIView): print(response.json()) return Response(response.json()) except: - print("ERROR") \ No newline at end of file + print("ERROR") + return Response({"error": "error"}, status=status.HTTP_400_BAD_REQUEST) \ No newline at end of file