Skip to content

Commit

Permalink
Clarify that /rooms/{roomId}/event/{eventId}'s 404 should be M_NOT_FO…
Browse files Browse the repository at this point in the history
…UND (#2204)

No error code is specified for this endpoint's 404. State that it should be an `M_NOT_FOUND`.
  • Loading branch information
anoadragon453 committed Jul 31, 2019
1 parent f989263 commit af60889
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/client-server/rooms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}":
Expand Down

0 comments on commit af60889

Please sign in to comment.