Skip to content

Commit

Permalink
Add error codes from MSC4178
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Sep 9, 2024
1 parent 6d088e0 commit 0b0b184
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/client-server-api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ only read state (e.g.: `/sync`, get account data, etc).
The user is unable to reject an invite to join the server notices room.
See the [Server Notices](#server-notices) module for more information.

`M_THREEPID_MEDIUM_NOT_SUPPORTED`
The homeserver does not support adding a third party identifier of the given medium.

#### Rate limiting

Homeservers SHOULD implement rate limiting to reduce the risk of being
Expand Down
8 changes: 8 additions & 0 deletions data/api/client-server/registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ paths:
has an account on the homeserver in question.
* `M_SERVER_NOT_TRUSTED` : The `id_server` parameter refers to an identity server
that is not trusted by this homeserver.
* `M_THREEPID_MEDIUM_NOT_SUPPORTED`
The homeserver does not support adding email addresses.
* `M_INVALID_PARAM`
The email address given was not valid.
content:
application/json:
schema:
Expand Down Expand Up @@ -345,6 +349,10 @@ paths:
has an account on the homeserver in question.
* `M_SERVER_NOT_TRUSTED` : The `id_server` parameter refers to an identity server
that is not trusted by this homeserver.
* `M_THREEPID_MEDIUM_NOT_SUPPORTED`
The homeserver does not support adding phone numbers.
* `M_INVALID_PARAM`
The phone number given was not valid.
content:
application/json:
schema:
Expand Down

0 comments on commit 0b0b184

Please sign in to comment.