From d107a8e6ea89f0633be6784893f3e223c449e409 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Fri, 20 Feb 2026 11:06:50 +0000 Subject: [PATCH] Add 404 to GET /login --- data/api/client-server/login.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/data/api/client-server/login.yaml b/data/api/client-server/login.yaml index 7251d4ff..00827ce6 100644 --- a/data/api/client-server/login.yaml +++ b/data/api/client-server/login.yaml @@ -70,6 +70,21 @@ paths: } ] } + "404": + description: |- + With `M_UNRECOGNIZED`: the homeserver does not support the legacy authentication API. + (See [Authentication API discovery](/client-server-api/#authentication-api-discovery).) + content: + application/json: + schema: + $ref: definitions/errors/error.yaml + examples: + response: + value: + { + "errcode": "M_UNRECOGNIZED", + "error": "OAuth 2.0 authentication is in use on this homeserver.", + } "429": description: This request was rate-limited. content: