1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py
index 28a078a7b4..67009fff39 100644
--- a/synapse/api/errors.py
+++ b/synapse/api/errors.py
@@ -605,3 +605,11 @@ class HttpResponseException(CodeMessageException):
errmsg = j.pop("error", self.msg)
return ProxiedRequestError(self.code, errmsg, errcode, j)
+
+
+class ShadowBanError(Exception):
+ """
+ Raised when a shadow-banned user attempts to perform an action.
+
+ This should be caught and a proper "fake" success response sent to the user.
+ """
|