Document PRIVACY_TOO_LONG

This commit is contained in:
Lonami Exo 2020-07-25 18:42:12 +02:00
parent 1c3e7dda01
commit ec8bb8a06a
2 changed files with 2 additions and 1 deletions

View File

@ -223,6 +223,7 @@ POLL_OPTION_INVALID,400,A poll option used invalid data (the data may be too lon
POLL_QUESTION_INVALID,400,The poll question was either empty or too long
POLL_UNSUPPORTED,400,This layer does not support polls in the issued method
PRIVACY_KEY_INVALID,400,The privacy key is invalid
PRIVACY_TOO_LONG,400,Cannot add that many entities in a single request
PTS_CHANGE_EMPTY,500,No PTS change
QUERY_ID_EMPTY,400,The query ID is empty
QUERY_ID_INVALID,400,The query ID is invalid

1 name codes description
223 POLL_QUESTION_INVALID 400 The poll question was either empty or too long
224 POLL_UNSUPPORTED 400 This layer does not support polls in the issued method
225 PRIVACY_KEY_INVALID 400 The privacy key is invalid
226 PRIVACY_TOO_LONG 400 Cannot add that many entities in a single request
227 PTS_CHANGE_EMPTY 500 No PTS change
228 QUERY_ID_EMPTY 400 The query ID is empty
229 QUERY_ID_INVALID 400 The query ID is invalid

View File

@ -50,7 +50,7 @@ account.sendVerifyPhoneCode,user,
account.setAccountTTL,user,TTL_DAYS_INVALID
account.setContactSignUpNotification,user,
account.setContentSettings,user,
account.setPrivacy,user,PRIVACY_KEY_INVALID
account.setPrivacy,user,PRIVACY_KEY_INVALID PRIVACY_TOO_LONG
account.unregisterDevice,user,TOKEN_INVALID
account.updateDeviceLocked,user,
account.updateNotifySettings,user,PEER_ID_INVALID

1 method usability errors
50 account.setAccountTTL user TTL_DAYS_INVALID
51 account.setContactSignUpNotification user
52 account.setContentSettings user
53 account.setPrivacy user PRIVACY_KEY_INVALID PRIVACY_KEY_INVALID PRIVACY_TOO_LONG
54 account.unregisterDevice user TOKEN_INVALID
55 account.updateDeviceLocked user
56 account.updateNotifySettings user PEER_ID_INVALID