Document new known RPC errors (#3044)

This commit is contained in:
Alisa Sireneva
2021-05-05 21:38:43 +03:00
committed by GitHub
parent 319b6283a9
commit b2c26a53ef
2 changed files with 9 additions and 4 deletions

View File

@@ -314,6 +314,9 @@ STICKER_ID_INVALID,400,The provided sticker ID is invalid
STICKER_INVALID,400,The provided sticker is invalid
STICKER_PNG_DIMENSIONS,400,Sticker png dimensions invalid
STICKER_PNG_NOPNG,400,Stickers must be a png file but the used image was not a png
STICKER_TGS_NOTGS,400,Stickers must be a tgs file but the used file was not a tgs
STICKER_THUMB_PNG_NOPNG,400,Stickerset thumb must be a png file but the used file was not png
STICKER_THUMB_TGS_NOTGS,400,Stickerset thumb must be a tgs file but the used file was not tgs
STORAGE_CHECK_FAILED,500,Server storage check failed
STORE_INVALID_SCALAR_TYPE,500,
TAKEOUT_INIT_DELAY_X,420,A wait of {seconds} seconds is required before being able to initiate the takeout
@@ -324,6 +327,7 @@ TIMEOUT,500,A timeout occurred while fetching data from the worker
THEME_INVALID,400,Theme invalid
THEME_MIME_INVALID,400,"You cannot create this theme, the mime-type is invalid"
TMP_PASSWORD_DISABLED,400,The temporary password is disabled
TMP_PASSWORD_INVALID,400,Password auth needs to be regenerated
TOKEN_INVALID,400,The provided token is invalid
TTL_DAYS_INVALID,400,The provided TTL is invalid
TYPES_EMPTY,400,The types field is empty
@@ -358,6 +362,7 @@ USER_NOT_MUTUAL_CONTACT,400 403,The provided user is not a mutual contact
USER_NOT_PARTICIPANT,400,The target user is not a member of the specified megagroup or channel
USER_PRIVACY_RESTRICTED,403,The user's privacy settings do not allow you to do this
USER_RESTRICTED,403,"You're spamreported, you can't create channels or chats."
USERPIC_UPLOAD_REQUIRED,400,You must have a profile picture before using this method
VIDEO_CONTENT_TYPE_INVALID,400,The video content type is not supported with the given parameters (i.e. supports_streaming)
VIDEO_FILE_INVALID,400,The given video cannot be used
WALLPAPER_FILE_INVALID,400,The given file cannot be used as a wallpaper
1 name codes description
314 STICKER_INVALID 400 The provided sticker is invalid
315 STICKER_PNG_DIMENSIONS 400 Sticker png dimensions invalid
316 STICKER_PNG_NOPNG 400 Stickers must be a png file but the used image was not a png
317 STICKER_TGS_NOTGS 400 Stickers must be a tgs file but the used file was not a tgs
318 STICKER_THUMB_PNG_NOPNG 400 Stickerset thumb must be a png file but the used file was not png
319 STICKER_THUMB_TGS_NOTGS 400 Stickerset thumb must be a tgs file but the used file was not tgs
320 STORAGE_CHECK_FAILED 500 Server storage check failed
321 STORE_INVALID_SCALAR_TYPE 500
322 TAKEOUT_INIT_DELAY_X 420 A wait of {seconds} seconds is required before being able to initiate the takeout
327 THEME_INVALID 400 Theme invalid
328 THEME_MIME_INVALID 400 You cannot create this theme, the mime-type is invalid
329 TMP_PASSWORD_DISABLED 400 The temporary password is disabled
330 TMP_PASSWORD_INVALID 400 Password auth needs to be regenerated
331 TOKEN_INVALID 400 The provided token is invalid
332 TTL_DAYS_INVALID 400 The provided TTL is invalid
333 TYPES_EMPTY 400 The types field is empty
362 USER_NOT_PARTICIPANT 400 The target user is not a member of the specified megagroup or channel
363 USER_PRIVACY_RESTRICTED 403 The user's privacy settings do not allow you to do this
364 USER_RESTRICTED 403 You're spamreported, you can't create channels or chats.
365 USERPIC_UPLOAD_REQUIRED 400 You must have a profile picture before using this method
366 VIDEO_CONTENT_TYPE_INVALID 400 The video content type is not supported with the given parameters (i.e. supports_streaming)
367 VIDEO_FILE_INVALID 400 The given video cannot be used
368 WALLPAPER_FILE_INVALID 400 The given file cannot be used as a wallpaper