Add USERNAME_PURCHASE_AVAILABLE to known errors

This commit is contained in:
deloverov 2022-12-07 14:29:31 +03:00 committed by GitHub
parent 83f13da420
commit 83c1cd1bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,6 +395,7 @@ USERNAME_INVALID,400,"Nobody is using this username, or the username is unaccept
USERNAME_NOT_MODIFIED,400,The username is not different from the current username
USERNAME_NOT_OCCUPIED,400,The username is not in use by anyone else yet
USERNAME_OCCUPIED,400,The username is already taken
USERNAME_PURCHASE_AVAILABLE,400,The username is for sale
USERS_TOO_FEW,400,"Not enough users (to create a chat, for example)"
USERS_TOO_MUCH,400,"The maximum number of users has been exceeded (to create a chat, for example)"
USER_ADMIN_INVALID,400,Either you're not an admin or you tried to ban an admin that you didn't promote

1 name codes description
395 USERNAME_NOT_MODIFIED 400 The username is not different from the current username
396 USERNAME_NOT_OCCUPIED 400 The username is not in use by anyone else yet
397 USERNAME_OCCUPIED 400 The username is already taken
398 USERNAME_PURCHASE_AVAILABLE 400 The username is for sale
399 USERS_TOO_FEW 400 Not enough users (to create a chat, for example)
400 USERS_TOO_MUCH 400 The maximum number of users has been exceeded (to create a chat, for example)
401 USER_ADMIN_INVALID 400 Either you're not an admin or you tried to ban an admin that you didn't promote