From 76f175b0110dbda4deb33c33c692a1a7202a42ba Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 22 Apr 2024 16:57:32 +0100 Subject: [PATCH] Use unstable prefix for errcode --- proposals/4108-oidc-qr-login.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/proposals/4108-oidc-qr-login.md b/proposals/4108-oidc-qr-login.md index e099b929..da5d5356 100644 --- a/proposals/4108-oidc-qr-login.md +++ b/proposals/4108-oidc-qr-login.md @@ -1562,6 +1562,26 @@ key org.matrix.msc4108 set to true. So, the response could look then as followin } ``` +Furthermore, where a new `errcode` is being introduced the existing `M_UNKNOWN` code should be used instead, with the new +code placed in a `org.matrix.msc4108.errcode` field instead. For example, instead of: + +```json +{ + "errcode": "M_CONCURRENT_WRITE", + "error": "Data was modified" +} +``` + +The server should send: + +```json +{ + "errcode": "M_UNKNOWN", + "org.matrix.msc4108.errcode": "M_CONCURRENT_WRITE", + "error": "Data was modified" +} +``` + ## Dependencies This MSC builds on [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) (and its dependencies) which