From 573dbb3b74978d56b7aeab317a64811e6d3f666d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 11 May 2022 18:14:24 +0100 Subject: [PATCH] Fix error code typo (#1059) * Fix error code typo See https://spec.matrix.org/v1.2/client-server-api/#other-error-codes * Create 1059.clarification --- changelogs/client_server/newsfragments/1059.clarification | 1 + data/api/client-server/room_state.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/client_server/newsfragments/1059.clarification diff --git a/changelogs/client_server/newsfragments/1059.clarification b/changelogs/client_server/newsfragments/1059.clarification new file mode 100644 index 00000000..2e94fb7f --- /dev/null +++ b/changelogs/client_server/newsfragments/1059.clarification @@ -0,0 +1 @@ +Fix room state 400 code error examples to match known error codes. diff --git a/data/api/client-server/room_state.yaml b/data/api/client-server/room_state.yaml index 89792e63..d43bc802 100644 --- a/data/api/client-server/room_state.yaml +++ b/data/api/client-server/room_state.yaml @@ -114,7 +114,7 @@ paths: Some example error codes include: - * `M_INVALID_PARAMETER`: One or more aliases within the `m.room.canonical_alias` + * `M_INVALID_PARAM`: One or more aliases within the `m.room.canonical_alias` event have invalid syntax. * `M_BAD_ALIAS`: One or more aliases within the `m.room.canonical_alias` event