BAD/NOT JSON round 2

This commit is contained in:
David Robertson 2022-07-14 12:41:55 +01:00
parent 999d7a5a15
commit b66b1994a0
No known key found for this signature in database
GPG key ID: 903ECE108A39DEDD

View file

@ -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",