mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-18 09:24:10 +01:00
Make example responses match recommendations
This commit is contained in:
parent
aa3abad39a
commit
8bb5138185
|
|
@ -207,7 +207,7 @@ paths:
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {
|
value: {
|
||||||
"errcode": "M_MISSING_PARAM",
|
"errcode": "M_INVALID_PARAM",
|
||||||
"error": "Create event not among invite state entries."
|
"error": "Create event not among invite state entries."
|
||||||
}
|
}
|
||||||
servers:
|
servers:
|
||||||
|
|
|
||||||
|
|
@ -256,8 +256,8 @@ paths:
|
||||||
The error should be passed through to clients so that they
|
The error should be passed through to clients so that they
|
||||||
may give better feedback to users.
|
may give better feedback to users.
|
||||||
|
|
||||||
If `M_MISSING_PARAM` is returned and the request is associated with a
|
If `M_MISSING_PARAM` or `M_INVALID_PARAM` is returned and the request is associated
|
||||||
Client-Server API request, the Client-Server API request SHOULD fail
|
with a Client-Server API request, the Client-Server API request SHOULD fail
|
||||||
with a 5xx error rather than being passed through.
|
with a 5xx error rather than being passed through.
|
||||||
|
|
||||||
New in `v1.2`, the following error conditions might happen:
|
New in `v1.2`, the following error conditions might happen:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue