From 8bb513818536dae0273ea67991b502c21b85fc36 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 24 Feb 2026 15:21:16 +0200 Subject: [PATCH] Make example responses match recommendations --- data/api/server-server/invites-v1.yaml | 2 +- data/api/server-server/joins-v2.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/api/server-server/invites-v1.yaml b/data/api/server-server/invites-v1.yaml index 9468590b..2b97923c 100644 --- a/data/api/server-server/invites-v1.yaml +++ b/data/api/server-server/invites-v1.yaml @@ -207,7 +207,7 @@ paths: examples: response: value: { - "errcode": "M_MISSING_PARAM", + "errcode": "M_INVALID_PARAM", "error": "Create event not among invite state entries." } servers: diff --git a/data/api/server-server/joins-v2.yaml b/data/api/server-server/joins-v2.yaml index 816bff9a..c37964b2 100644 --- a/data/api/server-server/joins-v2.yaml +++ b/data/api/server-server/joins-v2.yaml @@ -256,8 +256,8 @@ paths: The error should be passed through to clients so that they may give better feedback to users. - If `M_MISSING_PARAM` is returned and the request is associated with a - Client-Server API request, the Client-Server API request SHOULD fail + 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. New in `v1.2`, the following error conditions might happen: