errors: Add M_WRONG_ROOM_KEYS_VERSION (#419)

This commit is contained in:
Brad Murray 2025-10-18 05:42:01 -04:00 committed by GitHub
commit 572a704b04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,8 @@ var (
MIncompatibleRoomVersion = RespError{ErrCode: "M_INCOMPATIBLE_ROOM_VERSION"}
// The client specified a parameter that has the wrong value.
MInvalidParam = RespError{ErrCode: "M_INVALID_PARAM", StatusCode: http.StatusBadRequest}
// The client specified a room key backup version that is not the current room key backup version for the user.
MWrongRoomKeysVersion = RespError{ErrCode: "M_WRONG_ROOM_KEYS_VERSION", StatusCode: http.StatusForbidden}
MURLNotSet = RespError{ErrCode: "M_URL_NOT_SET"}
MBadStatus = RespError{ErrCode: "M_BAD_STATUS"}