about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-04-23 12:27:57 -0500
committerFrederick Muriuki Muriithi2026-04-23 12:27:57 -0500
commitca20ffd7758e5b29630cacbc15e4ad26a65eeb88 (patch)
tree6dccafca48f4a466ccfbfe1ebfcfff75aa7bbdce
parent2252a58bcd22d1241eae47444efc8a3f2393b02a (diff)
downloadgn-auth-ca20ffd7758e5b29630cacbc15e4ad26a65eeb88.tar.gz
AuthorisationError is HTTP status code 401.
-rw-r--r--gn_auth/auth/errors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/errors.py b/gn_auth/auth/errors.py
index 77b73aa..c499e86 100644
--- a/gn_auth/auth/errors.py
+++ b/gn_auth/auth/errors.py
@@ -6,7 +6,7 @@ class AuthorisationError(Exception):
 
     All exceptions in this package should inherit from this class.
     """
-    error_code: int = 400
+    error_code: int = 401
 
 class ForbiddenAccess(AuthorisationError):
     """Raised for forbidden access."""