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: