Spec asks homeservers to error on /account/3pid/add
and in certain cases but does not specify an appropriate status code/errcode for the response
#1426
Labels
A-Client-Server
Issues affecting the CS API
In the description of
POST /_matrix/client/v3/account/3pid/add
there is a line that states:However, only
200
,401
and429
error codes are specified - none of which are appropriate for informing the client that the association has been rejected.I propose we follow the example of
POST /_matrix/client/v3/register/email/requestToken
and specify that400
/M_THREEPID_IN_USE
be used in this case.I believe that this is a good rule to have in the spec. Note that this would require an MSC, as I'm not aware of any homeserver implementations that even enforce this currently.
Related: #520
The text was updated successfully, but these errors were encountered: