Also return 400 if you give a bogus room ID

This commit is contained in:
David Robertson 2022-07-01 00:36:55 +01:00
parent bd2ccfa91e
commit f58ea57ca9
No known key found for this signature in database
GPG key ID: 903ECE108A39DEDD

View file

@ -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