From b66b1994a0641d7fe8b9cf5978b0a411f580e694 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 14 Jul 2022 12:41:55 +0100 Subject: [PATCH] BAD/NOT JSON round 2 --- data/api/client-server/account-data.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data/api/client-server/account-data.yaml b/data/api/client-server/account-data.yaml index 3ebc0464..98bda9ee 100644 --- a/data/api/client-server/account-data.yaml +++ b/data/api/client-server/account-data.yaml @@ -73,7 +73,8 @@ paths: type: object 400: 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: application/json: { "errcode": "M_NOT_JSON", @@ -215,8 +216,9 @@ paths: type: object 400: description: |- - 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`). + The request body is not a JSON object (errcode `M_BAD_JSON` or + `M_NOT_JSON`), or the given `roomID` is not a valid room ID + (errcode `M_INVALID_PARAM`). examples: application/json: { "errcode": "M_NOT_JSON",