From af60889eeefaf4b249761009a5bf97a81d9677cf Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Wed, 31 Jul 2019 15:14:38 +0100 Subject: [PATCH] Clarify that /rooms/{roomId}/event/{eventId}'s 404 should be M_NOT_FOUND (#2204) No error code is specified for this endpoint's 404. State that it should be an `M_NOT_FOUND`. --- api/client-server/rooms.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/client-server/rooms.yaml b/api/client-server/rooms.yaml index 8af433b24..566e695a5 100644 --- a/api/client-server/rooms.yaml +++ b/api/client-server/rooms.yaml @@ -62,6 +62,13 @@ paths: - "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml" 404: description: The event was not found or you do not have permission to read this event. + examples: + application/json: { + "errcode": "M_NOT_FOUND", + "error": "Event not found." + } + schema: + "$ref": "definitions/errors/error.yaml" tags: - Room participation "/rooms/{roomId}/state/{eventType}/{stateKey}":