mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
BAD/NOT JSON round 2
This commit is contained in:
parent
999d7a5a15
commit
b66b1994a0
|
|
@ -73,7 +73,8 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
400:
|
400:
|
||||||
description: |-
|
description: |-
|
||||||
The request body is not a JSON object. Errcode: `M_NOT_JSON`.
|
The request body is not a JSON object. Errcode: `M_BAD_JSON`
|
||||||
|
or `M_NOT_JSON`.
|
||||||
examples:
|
examples:
|
||||||
application/json: {
|
application/json: {
|
||||||
"errcode": "M_NOT_JSON",
|
"errcode": "M_NOT_JSON",
|
||||||
|
|
@ -215,8 +216,9 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
400:
|
400:
|
||||||
description: |-
|
description: |-
|
||||||
The request body is not a JSON object (errcode `M_NOT_JSON`), or the
|
The request body is not a JSON object (errcode `M_BAD_JSON` or
|
||||||
given `roomID` is not a valid room ID (errcode `M_INVALID_PARAM`).
|
`M_NOT_JSON`), or the given `roomID` is not a valid room ID
|
||||||
|
(errcode `M_INVALID_PARAM`).
|
||||||
examples:
|
examples:
|
||||||
application/json: {
|
application/json: {
|
||||||
"errcode": "M_NOT_JSON",
|
"errcode": "M_NOT_JSON",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue