Skip to content

Commit b599876

Browse files
committed
Add M_UNKNOWN_ENDPOINT error code from MSC3743
1 parent 1f5db54 commit b599876

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

mautrix/errors/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
MTooLarge,
4343
MUnauthorized,
4444
MUnknown,
45+
MUnknownEndpoint,
4546
MUnknownToken,
4647
MUnrecognized,
4748
MUnsupportedRoomVersion,
@@ -105,6 +106,7 @@
105106
"MTooLarge",
106107
"MUnauthorized",
107108
"MUnknown",
109+
"MUnknownEndpoint",
108110
"MUnknownToken",
109111
"MUnrecognized",
110112
"MUnsupportedRoomVersion",

mautrix/errors/request.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ class MInsufficientPower(MForbidden):
111111
pass
112112

113113

114+
@standard_error("M_UNKNOWN_ENDPOINT")
115+
class MUnknownEndpoint(MatrixStandardRequestError):
116+
pass
117+
118+
114119
@standard_error("M_USER_DEACTIVATED")
115120
class MUserDeactivated(MForbidden):
116121
pass

0 commit comments

Comments
 (0)