Update documentation with new errors and further clarifications

This commit is contained in:
Lonami Exo
2020-06-22 13:21:45 +02:00
parent fc07e6bba7
commit e0c3143763
4 changed files with 49 additions and 25 deletions
+2
View File
@@ -108,6 +108,7 @@ FILE_PART_SIZE_CHANGED,400,The file part size (chunk size) cannot change during
FILE_PART_SIZE_INVALID,400,The provided file part size is invalid
FILE_PART_X_MISSING,400,Part {which} of the file is missing from storage
FILE_REFERENCE_EMPTY,400,The file reference must exist to access the media and it cannot be empty
FILE_REFERENCE_EXPIRED,400,The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent
FILEREF_UPGRADE_NEEDED,406,The file reference needs to be refreshed before being used again
FIRSTNAME_INVALID,400,The first name is invalid
FLOOD_TEST_PHONE_WAIT_X,420,A wait of {seconds} seconds is required in the test servers
@@ -163,6 +164,7 @@ MESSAGE_ID_INVALID,400,"The specified message ID is invalid or you can't do that
MESSAGE_NOT_MODIFIED,400,Content of the message was not modified
MESSAGE_POLL_CLOSED,400,The poll was closed and can no longer be voted on
MESSAGE_TOO_LONG,400,Message was too long. Current maximum length is 4096 UTF-8 characters
METHOD_INVALID,400,The API method is invalid and cannot be used
MSGID_DECREASE_RETRY,500,The request should be retried with a lower message ID
MSG_ID_INVALID,400,The message ID used in the peer was invalid
MSG_WAIT_FAILED,400,A waiting call returned an error
1 name codes description
108 FILE_PART_SIZE_INVALID 400 The provided file part size is invalid
109 FILE_PART_X_MISSING 400 Part {which} of the file is missing from storage
110 FILE_REFERENCE_EMPTY 400 The file reference must exist to access the media and it cannot be empty
111 FILE_REFERENCE_EXPIRED 400 The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent
112 FILEREF_UPGRADE_NEEDED 406 The file reference needs to be refreshed before being used again
113 FIRSTNAME_INVALID 400 The first name is invalid
114 FLOOD_TEST_PHONE_WAIT_X 420 A wait of {seconds} seconds is required in the test servers
164 MESSAGE_NOT_MODIFIED 400 Content of the message was not modified
165 MESSAGE_POLL_CLOSED 400 The poll was closed and can no longer be voted on
166 MESSAGE_TOO_LONG 400 Message was too long. Current maximum length is 4096 UTF-8 characters
167 METHOD_INVALID 400 The API method is invalid and cannot be used
168 MSGID_DECREASE_RETRY 500 The request should be retried with a lower message ID
169 MSG_ID_INVALID 400 The message ID used in the peer was invalid
170 MSG_WAIT_FAILED 400 A waiting call returned an error