MSC4528: M_INCOMPATIBLE_SERVER error code - #4528
Open
erikjohnston wants to merge 1 commit into
Open
Conversation
erikjohnston
force-pushed
the
erikj/incompatible_server_error_code
branch
from
August 11, 2026 13:45
04a0539 to
fa4e525
Compare
erikjohnston
force-pushed
the
erikj/incompatible_server_error_code
branch
from
August 11, 2026 13:53
fa4e525 to
84c3585
Compare
erikjohnston
marked this pull request as ready for review
August 11, 2026 13:54
M_INCOMPATIBLE_SERVER error codeM_INCOMPATIBLE_SERVER error code
10 tasks
turt2live
reviewed
Aug 11, 2026
Member
There was a problem hiding this comment.
Implementation requirements:
- Server (throwing)
- Client (backwards compatibility)
- Client (forwards compatibility)
Member
Author
There was a problem hiding this comment.
Not sure if this really requires an impl?
Comment on lines
+3
to
+12
| Following [MSC4291](https://github.com/matrix-org/matrix-spec-proposals/pull/4291) and | ||
| [MSC4311](https://github.com/matrix-org/matrix-spec-proposals/pull/4311), the Server-Server API | ||
| tells sending servers to convert certain federation errors into 5xx errors over the Client-Server | ||
| API. [`PUT /_matrix/federation/v2/send_join/{roomId}/{eventId}`](https://spec.matrix.org/v1.19/server-server-api/#put_matrixfederationv2send_joinroomideventid) | ||
| and [`PUT /_matrix/federation/v2/invite/{roomId}/{eventId}`](https://spec.matrix.org/v1.19/server-server-api/#put_matrixfederationv2inviteroomideventid) | ||
| both say of their `400` response: | ||
|
|
||
| > If `M_MISSING_PARAM` or `M_INVALID_PARAM` is returned and the request is associated | ||
| > with a Client-Server API request, the Client-Server API request SHOULD fail | ||
| > with a 5xx error rather than being passed through. |
Contributor
There was a problem hiding this comment.
This MSC is spawning from trying to implement the spec, see element-hq/synapse#19723 (comment)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Specify appropriate error codes for MSC4291 and MSC4311 where it was left as a 5xx.
Rendered
Disclaimer: Claude was used for the rough first draft. This has been subsequently edited a fair bit.