Add 403 error to IS unbind

Fixes https://github.com/matrix-org/matrix-doc/issues/2117
This commit is contained in:
Travis Ralston 2019-06-12 15:41:10 -06:00
parent d26cf7da92
commit 67ea3b9ce8
2 changed files with 14 additions and 0 deletions

View file

@ -279,6 +279,19 @@ paths:
If the response body is not a JSON Matrix error, the identity server If the response body is not a JSON Matrix error, the identity server
does not support unbinds. If a JSON Matrix error is in the response does not support unbinds. If a JSON Matrix error is in the response
body, the requesting party should respect the error. body, the requesting party should respect the error.
403:
description: |-
The credentials supplied to authenticate the request were invalid.
This may also be returned if the identity server does not support
the chosen authentication method (such as blocking homeservers from
unbinding identifiers).
examples:
application/json: {
"errcode": "M_FORBIDDEN",
"error": "Invalid homeserver signature"
}
schema:
$ref: "../client-server/definitions/errors/error.yaml"
501: 501:
description: |- description: |-
If the response body is not a JSON Matrix error, the identity server If the response body is not a JSON Matrix error, the identity server

View file

@ -0,0 +1 @@
Clarify that identity servers can return 403 for unbind requests.