From d52fcdacfa7a98e6ab56916dd7d331e53d94ab77 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Sun, 26 May 2019 21:36:31 -0600 Subject: [PATCH] Add M_NOT_FOUND definition for deleting non-existent aliases Fixes https://github.com/matrix-org/matrix-doc/issues/1675 --- api/client-server/directory.yaml | 9 +++++++++ .../client_server/newsfragments/2029.clarification | 1 + 2 files changed, 10 insertions(+) create mode 100644 changelogs/client_server/newsfragments/2029.clarification diff --git a/api/client-server/directory.yaml b/api/client-server/directory.yaml index 78ddfa29..2c7c8386 100644 --- a/api/client-server/directory.yaml +++ b/api/client-server/directory.yaml @@ -148,5 +148,14 @@ paths: } schema: type: object + 404: + description: There is no mapped room ID for this room alias. + examples: + application/json: { + "errcode": "M_NOT_FOUND", + "error": "Room alias #monkeys:example.org not found." + } + schema: + "$ref": "definitions/errors/error.yaml" tags: - Room directory diff --git a/changelogs/client_server/newsfragments/2029.clarification b/changelogs/client_server/newsfragments/2029.clarification new file mode 100644 index 00000000..95b65481 --- /dev/null +++ b/changelogs/client_server/newsfragments/2029.clarification @@ -0,0 +1 @@ +Add ``M_NOT_FOUND`` error definition for deleting room aliases.