Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error codes from MSC4178 #1944

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add error codes from MSC4178 #1944

wants to merge 5 commits into from

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Sep 9, 2024

Specs matrix-org/matrix-spec-proposals#4178

Pull Request Checklist

Preview: https://pr1944--matrix-spec-previews.netlify.app

* `M_THREEPID_MEDIUM_NOT_SUPPORTED`
The homeserver does not support adding email addresses.
* `M_INVALID_PARAM`
The email address given was not valid.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds the error codes to /register/email/requestToken which I think is ok even though the MSC only mentioned /account/3pid/email/requestToken. However, the description of the 400 response doesn't seem to be shared between the two endpoints which means the new error codes don't render on /account/3pid/email/requestToken. I assume we'd probably want to have the codes show on both endpoints?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I think in my double-msc confusion I added them to the wrong one, so they just weren't on the one they were supposed to be on at all.

Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes here LGTM. Though looking at the preview I can see that the example 400 response uses error code M_THREEPID_IN_USE, which are not one of the possible error codes.

Should that be one of the ones on the list? Or is that one not actually specced, and the example should be updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants