mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 04:54:10 +01:00
BAD_JSON -> NOT_JSON where appropriate
This commit is contained in:
parent
e742b9948e
commit
999d7a5a15
|
|
@ -73,10 +73,10 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
400:
|
400:
|
||||||
description: |-
|
description: |-
|
||||||
The request body is not a JSON object. Errcode: `M_BAD_JSON`.
|
The request body is not a JSON object. Errcode: `M_NOT_JSON`.
|
||||||
examples:
|
examples:
|
||||||
application/json: {
|
application/json: {
|
||||||
"errcode": "M_BAD_JSON",
|
"errcode": "M_NOT_JSON",
|
||||||
"error": "Content must be a JSON object."
|
"error": "Content must be a JSON object."
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
|
|
@ -215,11 +215,11 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
400:
|
400:
|
||||||
description: |-
|
description: |-
|
||||||
The request body is not a JSON object (errcode `M_BAD_JSON`), or the
|
The request body is not a JSON object (errcode `M_NOT_JSON`), or the
|
||||||
given `roomID` is not a valid room ID (errcode `M_INVALID_PARAM`).
|
given `roomID` is not a valid room ID (errcode `M_INVALID_PARAM`).
|
||||||
examples:
|
examples:
|
||||||
application/json: {
|
application/json: {
|
||||||
"errcode": "M_BAD_JSON",
|
"errcode": "M_NOT_JSON",
|
||||||
"error": "Content must be a JSON object."
|
"error": "Content must be a JSON object."
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue