Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Revert another status code change.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Jul 20, 2022
1 parent 61f8f25 commit 296467e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions synapse/rest/client/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,7 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
"Adding emails have been disabled due to lack of an email config"
)
raise SynapseError(
HTTPStatus.NOT_FOUND,
"Adding an email to your account is disabled on this server",
Codes.NOT_FOUND,
400, "Adding an email to your account is disabled on this server",
)

body = parse_and_validate_json_object_from_request(
Expand Down

0 comments on commit 296467e

Please sign in to comment.