From db22b05fc47ab77a4693940aabbf628c20574bdd Mon Sep 17 00:00:00 2001 From: 35C4n0r Date: Fri, 17 Nov 2023 10:32:08 +0530 Subject: [PATCH] feat: update tests/spec.json Signed-off-by: Jay --- tests/resources/spec.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/resources/spec.json b/tests/resources/spec.json index 772602681..8c3a420e1 100644 --- a/tests/resources/spec.json +++ b/tests/resources/spec.json @@ -1134,6 +1134,27 @@ } }, "required": ["result"] + }, + "appwriteException": { + "x-appwrite": { + "types": [ + { + "code": 400, + "type": "general_mock", + "message": "General errors thrown by the mock controller used for testing." + }, + { + "code": 409, + "type": "document_already_exists", + "message": "Document with the requested ID already exists. Try again with a different ID or use unique() to generate a unique ID." + }, + { + "code": 404, + "type": "avatar_not_found", + "message": "The request avatar could not be found." + } + ] + } } }, "externalDocs": {