From c876c9f53018529fed1cb025a085b6e9d37dc3ef Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 22 Feb 2023 16:22:47 +0300 Subject: auth: List data not linked to any group. --- gn3/auth/authorisation/errors.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gn3/auth/authorisation/errors.py') 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 -- cgit v1.2.3