From 999d7a5a15adea05ddf8ae6235113cc40992e6f2 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Wed, 13 Jul 2022 19:14:25 +0100 Subject: [PATCH] BAD_JSON -> NOT_JSON where appropriate --- data/api/client-server/account-data.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/api/client-server/account-data.yaml b/data/api/client-server/account-data.yaml index 93f1fb0a..3ebc0464 100644 --- a/data/api/client-server/account-data.yaml +++ b/data/api/client-server/account-data.yaml @@ -73,10 +73,10 @@ paths: type: object 400: 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: application/json: { - "errcode": "M_BAD_JSON", + "errcode": "M_NOT_JSON", "error": "Content must be a JSON object." } schema: @@ -215,11 +215,11 @@ paths: type: object 400: 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`). examples: application/json: { - "errcode": "M_BAD_JSON", + "errcode": "M_NOT_JSON", "error": "Content must be a JSON object." } schema: