aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth/authorisation/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/auth/authorisation/errors.py')
-rw-r--r--gn3/auth/authorisation/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gn3/auth/authorisation/errors.py b/gn3/auth/authorisation/errors.py
index 99ee55d..2116ead 100644
--- a/gn3/auth/authorisation/errors.py
+++ b/gn3/auth/authorisation/errors.py
@@ -15,6 +15,12 @@ class NotFoundError(AuthorisationError):
"""Raised whenever we try fetching (a/an) object(s) that do(es) not exist."""
error_code: int = 404
+class InvalidData(AuthorisationError):
+ """
+ Exception if user requests invalid data
+ """
+ error_code: int = 400
+
class InconsistencyError(AuthorisationError):
"""
Exception raised due to data inconsistencies