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

Commit 296467e

Browse files
author
David Robertson
committed
Revert another status code change.
1 parent 61f8f25 commit 296467e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

synapse/rest/client/account.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,7 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
356356
"Adding emails have been disabled due to lack of an email config"
357357
)
358358
raise SynapseError(
359-
HTTPStatus.NOT_FOUND,
360-
"Adding an email to your account is disabled on this server",
361-
Codes.NOT_FOUND,
359+
400, "Adding an email to your account is disabled on this server",
362360
)
363361

364362
body = parse_and_validate_json_object_from_request(

0 commit comments

Comments
 (0)