mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 04:54:10 +01:00
Also return 400 if you give a bogus room ID
This commit is contained in:
parent
bd2ccfa91e
commit
f58ea57ca9
|
|
@ -214,7 +214,8 @@ paths:
|
|||
type: object
|
||||
400:
|
||||
description: |-
|
||||
The request body is not a JSON object.
|
||||
The request body is not a JSON object, or the given `roomID` is not a valid
|
||||
room ID.
|
||||
examples:
|
||||
application/json: {
|
||||
"errcode": "M_BAD_JSON",
|
||||
|
|
@ -286,6 +287,14 @@ paths:
|
|||
type: object
|
||||
example: {
|
||||
"custom_account_data_key": "custom_config_value"}
|
||||
400:
|
||||
description: |-
|
||||
The given `roomID` is not a valid room ID.
|
||||
examples:
|
||||
application/json: {
|
||||
"errcode": "M_INVALID_PARAM",
|
||||
"error": "@notaroomid:example.org is not a valid room ID."
|
||||
}
|
||||
403:
|
||||
description: |-
|
||||
The access token provided is not authorized to retrieve this user's account
|
||||
|
|
|
|||
Loading…
Reference in a new issue