mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-03 06:28:38 +01:00
Merge pull request #1908 from matrix-org/travis/spec/unsupported-room-version
Describe M_UNSUPPORTED_ROOM_VERSION on invite and createRoom endpoints
This commit is contained in:
commit
324660073a
|
|
@ -244,6 +244,12 @@ paths:
|
|||
invalid: for example, the user's ``power_level`` is set below
|
||||
that necessary to set the room name (``errcode`` set to
|
||||
``M_INVALID_ROOM_STATE``).
|
||||
|
||||
- The homeserver doesn't support the requested room version, or
|
||||
one or more users being invited to the new room are residents
|
||||
of a homeserver which does not support the requested room version.
|
||||
The ``errcode`` will be ``M_UNSUPPORTED_ROOM_VERSION`` in these
|
||||
cases.
|
||||
schema:
|
||||
"$ref": "definitions/errors/error.yaml"
|
||||
tags:
|
||||
|
|
|
|||
|
|
@ -82,6 +82,20 @@ paths:
|
|||
}
|
||||
schema:
|
||||
type: object
|
||||
400:
|
||||
description: |-
|
||||
|
||||
The request is invalid. A meaningful ``errcode`` and description
|
||||
error text will be returned. Example reasons for rejection include:
|
||||
|
||||
- The request body is malformed (``errcode`` set to ``M_BAD_JSON``
|
||||
or ``M_NOT_JSON``).
|
||||
|
||||
- One or more users being invited to the room are residents of a
|
||||
homeserver which does not support the requested room version. The
|
||||
``errcode`` will be ``M_UNSUPPORTED_ROOM_VERSION`` in these cases.
|
||||
schema:
|
||||
"$ref": "definitions/errors/error.yaml"
|
||||
403:
|
||||
description: |-
|
||||
You do not have permission to invite the user to the room. A meaningful ``errcode`` and description error text will be returned. Example reasons for rejections are:
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Add `M_RESOURCE_LIMIT_EXCEEDED` as an error code for when homeservers exceed limits imposed on them.
|
||||
Add ``M_RESOURCE_LIMIT_EXCEEDED`` as an error code for when homeservers exceed limits imposed on them.
|
||||
|
|
|
|||
1
changelogs/client_server/newsfragments/1903.feature
Normal file
1
changelogs/client_server/newsfragments/1903.feature
Normal file
|
|
@ -0,0 +1 @@
|
|||
Emit ``M_UNSUPPORTED_ROOM_VERSION`` error codes where applicable on ``/createRoom`` and ``/invite`` APIs.
|
||||
Loading…
Reference in a new issue