mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-01 17:24:10 +01:00
Make example responses match recommendations
This commit is contained in:
parent
aa3abad39a
commit
8bb5138185
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue