version 6.5
Toutes les commandes Internet de 4D (à l'exception de IT_ErrorText et IT_Version) sont des fonctions retournant un entier comme résultat. Cet entier contient un numéro d'erreur que la commande doit retourner à la base de données 4D. Si une commande aboutit, un zéro est renvoyé.
L'origine d'une erreur peut généralement être déterminée à partir de l'intervalle de valeurs dans lequel se situe son numéro. Le tableau suivant vous permet de distinguer les sources d'erreurs en fonction de leur numéro :
| Numéro d'erreur | Générée par |
| Erreur < 0 | Système d'exploitation |
| 0 | Pas d'erreur |
| Erreur >= 10000 | Commandes Internet de 4D |
Codes d'erreurs de 4D Internet Commands
Si une erreur se produit durant l'exécution d'une commande Internet de 4D, une des valeurs suivantes sera retournée :
| 10000 | user cancelled a dialog or progress. |
| 10001 | unimplemented Internet command. |
| 10002 | invalid array type. |
| 10003 | no more (TCP,SMTP,POP3, etc. ) references available. |
| 10004 | invalid reference. |
| 10005 | need a "Host" for use in the "SMTP_Send" command. |
| 10006 | need a "From" for use in the "SMTP_Send" command. |
| 10007 | need a recipient for use in the "SMTP_Send" command. |
| 10008 | already logged in. |
| 10009 | error trying to make a POP3 connection. |
| 10010 | error with POP3 USER. |
| 10011 | error with POP3 PASS. |
| 10012 | error with POP3 QUIT. |
| 10013 | error with POP3 STAT. |
| 10014 | error with POP3 LIST. |
| 10015 | error with POP3 UIDL. |
| 10016 | error with POP3 DELE. |
| 10017 | error with POP3 RSET. |
| 10018 | invalid message number. |
| 10019 | invalid character offset. |
| 10020 | invalid character length. |
| 10021 | error with POP3 RETR. |
| 10022 | field was not found in mail Header. |
| 10023 | no attachments found. |
| 10024 | error in processing BinHex. |
| 10025 | BinHex checksum error. |
| 10026 | Internet commands unavailable. Probably because MacTCP is not installed |
| 10027 | Connection no longer exists |
| 10028 | Exceeded 32k limit |
| 10029 | Error with POP3 NOOP |
| 10030 | POP3 session was closed by the server |
| 10031 | Error with POP3 APOP |
| 10032 | Unknown or invalid response. |
| 10033 | SMTP 421 - Service not available, closing transmission channel. |
| 10034 | SMTP 450 - Requested mail action not taken: mailbox unavailable. |
| 10035 | SMTP 451 - Requested action aborted: local error in processing. |
| 10036 | SMTP 452 - Requested action not taken: insufficient system storage. |
| 10037 | SMTP 500 - Syntax error, command unrecognized. |
| 10038 | SMTP 501 - Syntax error in parameters or arguments. |
| 10039 | SMTP 502 - Command not implemented. |
| 10040 | SMTP 503 - Bad sequence of commands. |
| 10041 | SMTP 504 - Command parameter not implemented. |
| 10042 | SMTP 550 - Requested action not taken: mailbox unavailable. |
| 10043 | SMTP 551 - User not local; please try <forward-path>. |
| 10044 | SMTP 552 - Requested mail action aborted: exceeded storage allocation. |
| 10045 | SMTP 553 - Requested action not taken: mailbox name not allowed. |
| 10046 | SMTP 554 - Transaction failed. |
| 10047 | FTP 421 - Service not available, closing control connection. |
| 10048 | FTP 425 - Can't open data connection. |
| 10049 | FTP 426 - Connection closed; transfer aborted. |
| 10050 | FTP 450 - Requested file action not taken. File unavailable (e.g.,file busy). |
| 10051 | FTP 451 - Requested action aborted: local error in processing. |
| 10052 | FTP 452 - Requested action not taken. Insufficient storage space in system. |
| 10053 | FTP 500 - Syntax error, command unrecognized. |
| 10054 | FTP 501 - Syntax error in parameters or arguments. |
| 10055 | FTP 502 - Command not implemented. |
| 10056 | FTP 503 - Bad sequence of commands. |
| 10057 | FTP 504 - Command not implemented for that parameter. |
| 10058 | FTP 530 - Not logged in. |
| 10059 | FTP 532 - Need account for storing files. |
| 10060 | FTP 550 - Requested action not taken. File unavailable (e.g., file not found, no access). |
| 10061 | FTP 551 - Requested action aborted: page type unknown. |
| 10062 | FTP 552 - Requested file action aborted. Exceeded storage allocation (for current directory |
| or dataset). | |
| 10063 | FTP 553 - Requested action not taken. File name not allowed. |
| 10064 | No response has been received within the given timeout period. |
| 10065 | Not a FTP file. |
| 10066 | Error in processing Base64. |
| 10067 | Error in processing AppleSingle. |
| 10068 | Error in processing Quoted-Printable. |
| 10069 | FTP session was closed by the server. |
| 10070 | Not a FTP directory. |
| 10071 | TCP session was closed by the server |
| 10072 | Invalid encode kind |
| 10073 | Invalid decode kind |
| 10074 | An asynchronous DNR call did not complete |
| 10075 | An asynchronous OpenTransport call did not complete |
| 10076 | OpenTransport bind failed |
| 10077 | OpenTransport connect failed |
| 10078 | Maximum MacTCP streams reached |
| 10079 | Error in processing uuencode |
| 10080 | Cannot load ICMP library |
| 10081 | Error in processing MacBinary |
| 10082 | MacBinary checksum error |
| 10083 | Could not open a file |
| 10084 | No FTP information received |
| 10085 | Unknown FTP information received |
Codes d'erreurs Open Transport
| -3211 | Open Transport Out of Memory |
| -3201 | Open Transport Not Found |
| -3216 | Open Transport duplicate found |
| -3150 | A Bad address was specified |
| -3151 | A Bad option was specified |
| -3152 | Missing access permission |
| -3153 | Bad provider reference |
| -3154 | No address was specified |
| -3155 | Call issued in wrong state |
| -3156 | Sequence specified does not exist |
| -3157 | A system error occurred |
| -3158 | An event occurred - call Look() |
| -3159 | An illegal amount of data was specified |
| -3160 | Passed buffer not big enough |
| -3161 | Provider is flow-controlled |
| -3162 | No data available for reading |
| -3163 | No disconnect indication available |
| -3164 | No Unit Data Error indication available |
| -3165 | A Bad flag value was supplied |
| -3166 | No orderly release indication available |
| -3167 | Command is not supported |
| -3168 | State is changing - try again later |
| -3169 | Bad structure type requested for OTAlloc |
| -3170 | A bad endpoint name was supplied |
| -3171 | A Bind to an in-use addr with qlen > 0 |
| -3172 | Address requested is already in use |
| -3173 | Accept failed because of pending listen |
| -3174 | Tried to accept on incompatible endpoint |
| -3175 | kOTResQLenErr |
| -3176 | kOTResAddressErr |
| -3177 | kOTQFullErr |
| -3178 | An unspecified provider error occurred |
| -3179 | A synchronous call at interrupt time |
| -3180 | The command was cancelled |
| -3200 | Permission denied |
| -3201 | No such file or directory |
| -3202 | No such resource |
| -3203 | Interrupted system service |
| -3204 | I/O error |
| -3205 | No such device or address |
| -3208 | Bad file number |
| -3210 | Try operation again later |
| -3211 | Not enough space |
| -3212 | Permission denied |
| -3213 | Bad address |
| -3215 | Device or resource busy |
| -3216 | File exists |
| -3218 | No such device |
| -3221 | Invalid argument |
| -3224 | Not a character device |
| -3231 | Broken pipe |
| -3233 | Message size too large for STREAM |
| -3234 | Call would block, so was aborted |
| -3234 | or a deadlock would occur |
| -3236 | kEALREADYErr |
| -3237 | Socket operation on non-socket |
| -3238 | Destination address required |
| -3239 | Message too long |
| -3240 | Protocol wrong type for socket |
| -3241 | Protocol not available |
| -3242 | Protocol not supported |
| -3243 | Socket type not supported |
| -3244 | Operation not supported on socket |
| -3247 | Address already in use |
| -3248 | Can't assign requested address |
| -3249 | Network is down |
| -3250 | Network is unreachable |
| -3251 | Network dropped connection on reset |
| -3252 | Software caused connection abort |
| -3253 | Connection reset by peer |
| -3254 | No buffer space available |
| -3255 | Socket is already connected |
| -3256 | Socket is not connected |
| -3257 | Can't send after socket shutdown |
| -3258 | Too many references: can't splice |
| -3259 | Connection timed out |
| -3260 | Connection refused |
| -3263 | Host is down |
| -3264 | No route to host |
| -3269 | kEPROTOErr |
| -3270 | kETIMEErr |
| -3271 | kENOSRErr |
| -3272 | kEBADMSGErr |
| -3273 | kECANCELErr |
| -3274 | kENOSTRErr |
| -3275 | kENODATAErr |
| -3276 | kEINPROGRESSErr |
| -3277 | kESRCHErr |
| -3278 | kENOMSGErr |
| -3279 | kOTClientNotInittedErr |
| -3280 | kOTPortHasDiedErr |
| -3281 | kOTPortWasEjectedErr |
| -3282 | kOTBadConfigurationErr |
| -3283 | kOTConfigurationChangedErr |
| -3284 | kOTUserRequestedErr |
| -3285 | kOTPortLostConnection |
Codes d'erreurs MacTCP & Divers
| -33 | Unable to write to the disk. The File Directory is full. |
| -34 | Unable to write to the disk. The disk is full. |
| -35 | No such volume. |
| -36 | I/O error. |
| -37 | Bad file name or volume name. |
| -38 | File is not open for reading or writing. |
| -39 | Unable to read from the file. The end of file was reached. |
| -42 | Unable to continue because too many files are open. |
| -43 | The file cannot be found. |
| -44 | The volume is locked at the hardware level. |
| -45 | The file is locked. |
| -46 | The volume is locked at the software level. |
| -47 | One or more files are already open by another application. |
| -48 | A file with this name already exists. |
| -49 | File already open with write permission. |
| -54 | Permissions error on opened file. |
| -57 | Not a Macintosh volume. |
| -59 | An error occured while trying to rename the file. |
| -61 | Write permissions error. |
| -108 | Insufficient amount of memory. |
| -120 | Directory not found. |
| -23000 | Unable to initialize the local network handler. |
| -23001 | The manually set address is configured improperly. |
| -23002 | A configuration resource is missing. |
| -23003 | Not enough room in the application heap to load MacTCP. |
| -23004 | Error in getting an address from a server or the address is already in use by another |
| machine. | |
| -23005 | A TCPClose command was already issued so there is no more data to send on this |
| connection. | |
| -23006 | The total amount of data described by the WDS was either 0 or greater than 65,535 bytes. |
| -23007 | The TCP or UDP stream already has an open connection. |
| -23008 | This TCP stream has no open connection. |
| -23009 | Maximum TCP or UDP streams are already open. |
| -23010 | The specified TCP or UDP stream is not open. |
| -23011 | An open stream is already using this receive buffer area. |
| -23012 | The TCP connection was broken. |
| -23013 | The receive buffer area pointer is 0. |
| -23014 | Invalid RDS or WDS buffers. |
| -23015 | The connection came halfway up and then failed. |
| -23016 | The specified command action was not completed in the specified time period. |
| -23017 | A stream is already open using this local UDP port or a TCP connection already exists |
| between this local IP address and TCP port, and the specified remote IP address and TCP | |
| port. | |
| -23032 | The packet is too large to send without fragmenting and the Don't Fragment flag is set. |
| -23033 | The destination host is not responding to address resolution requests. |
| -23035 | The icmp echo packet was not responded to in the indicated timeout period. |
| -23036 | Insufficient internal driver buffers available to fragment this packet on send. |
| -23037 | No gateway available to manage routing of packets to off-network destinations. |
| -23041 | The hostName field had a syntax error. The address was given in dot notation (that is, |
| W.X.Y.Z) and did not conform to the syntax for an IP address. | |
| -23042 | The name specified cannot be found in the cache. The domain name resolver will now |
| query the domain name server and return the answer in the call-back procedure. | |
| -23043 | No result procedure is passed to the address translation call when the resolver must be |
| used to find the address. | |
| -23044 | No name server can be found for the specified name string. |
| -23045 | This domain name does not exist. |
| -23046 | None of the known name servers are responding. |
| -23047 | The domain name server has returned an error. |
| -23048 | Not enough memory is available to issue the needed DNR query or to build the DNR |
| cache. |
Codes d'erreurs WinSock
| -10004 | Blocking call cancelled |
| -10013 | Permission denied |
| -10014 | Bad address |
| -10022 | Invalid argument |
| -10024 | No more sockets available |
| -10035 | Non-blocking socket would block |
| -10036 | Illegal WinSock function invoked while a blocking function is in progress |
| -10037 | An attempt was made to cancel an asynchronous operation that has already completed |
| -10038 | Specified socket descriptor is not valid for this application |
| -10039 | Destination address was required but none was supplied to the function |
| -10040 | Datagram too large for buffer |
| -10041 | Specified protocol does not match the other parameters in the call |
| -10042 | Protocol option is unknown or invalid |
| -10043 | Specified protocol is not supported by the Windows Sockects implementation |
| -10044 | Specified socket type is not supported by the specified address family |
| -10045 | Socket does not support the specified operation |
| -10046 | Protocol family not supported |
| -10047 | Specified address family is not supported by the Windows Sockects implementation or |
| cannot be used with the indicated socket | |
| -10048 | Specified address is already in use |
| -10049 | Specified address is not available from the local machine |
| -10050 | Problem with the network subsystem |
| -10051 | Network cannot be reached from this host at this time |
| -10052 | Connection was dropped and must be reset |
| -10053 | Connection was aborted because of a timeout or other error condition |
| -10054 | Connection was reset by the remote host |
| -10055 | Windows Sockets implementation is out of buffer space or the space provided in an API |
| call by the application was too small to hold the requested information | |
| -10056 | Specified socket is already connected |
| -10057 | Specified socket is not connected |
| -10058 | Socket has had the requested functionality shut down |
| -10060 | Connection attempt timed out before the connection could be established |
| -10061 | Connection attempt was forcefully rejected |
| -10091 | Network subsystem is not yet ready for communication |
| -10092 | Windows Sockets DLL does not support the requested Winsock protocol version |
| -10093 | Windows Sockets not initialized |
| -11001 | Requested database information does not exist; as confirmed by an authoritative host |
| -11002 | Requested information was not found but the answer was not authoritative |
| -11003 | Non-recoverable error occurred |
| -11004 | Name supplied was valid but no information of the requested type is in the database |
Codification SMTP
Les valeurs suivantes ne sont pas des codes d'erreurs retournés par les commandes Internet de 4D. Ce sont les codes de réponses définis pour le protocole SMTP afin d'indiquer l'état courant de la communication en mode client-serveur. Cette liste est particulièrement utile dans le cas où vous souhaitez créer votre propre système de messagerie à l'aide des commandes TCP de bas niveau.
| 211 | System status, or system help reply |
| 214 | Help message [Information on how to use the receiver or the meaning of a particular |
| non-standard command; this reply is useful only to the human user] | |
| 220 | <domain> Service ready |
| 221 | <domain> Service closing transmission channel |
| 250 | Requested mail action okay, completed |
| 251 | User not local; will forward to <forward-path> |
| 354 | Start mail input; end with <CRLF>.<CRLF> |
| 421 | <domain> Service not available, closing transmission channel [This may be a reply to |
| any command if the service knows it must shut down] | |
| 450 | Requested mail action not taken: mailbox unavailable [E.g., mailbox busy] |
| 451 | Requested action aborted: local error in processing |
| 452 | Requested action not taken: insufficient system storage |
| 500 | Syntax error, command unrecognized [This may include errors such as command line |
| too long] | |
| 501 | Syntax error in parameters or arguments |
| 502 | Command not implemented |
| 503 | Bad sequence of commands |
| 504 | Command parameter not implemented |
| 550 | Requested action not taken: mailbox unavailable [E.g., mailbox not found, no access] |
| 551 | User not local; please try <forward-path> |
| 552 | Requested mail action aborted: exceeded storage allocation |
| 553 | Requested action not taken: mailbox name not allowed [E.g., mailbox syntax incorrect] |
| 554 | Transaction failed |
Codification FTP
Les valeurs suivantes ne sont pas des codes d'erreurs retournés par les commandes Internet de 4D. Ce sont les codes de réponses définis pour le protocole FTP afin d'indiquer l'état courant de la communication en mode client-serveur. Cette liste est particulièrement utile dans le cas où vous souhaitez créer votre propre système de transfert de fichiers à l'aide des commandes TCP de bas niveau.
| 110 | Restart marker reply. In this case, the text is exact and not left to the particular |
| implementation; it must read: | |
| MARK yyyy = mmmm | |
| Where yyyy is User-process data stream marker, and mmmm server's equivalent | |
| marker (note the spaces between markers and "="). | |
| 120 | Service ready in nnn minutes. |
| 125 | Data connection already open; transfer starting. |
| 150 | File status okay; about to open data connection. |
| 200 | Command okay. |
| 202 | Command not implemented, superfluous at this site. |
| 211 | System status, or system help reply. |
| 212 | Directory status. |
| 213 | File status. |
| 214 | Help message on how to use the server or the meaning of a particular non-standard |
| command. This reply is useful only to the human user. | |
| 215 | NAME system type. Where NAME is an official system name from the list in the |
| Assigned Numbers document. | |
| 220 | Service ready for new user. |
| 221 | Service closing control connection. Logged out if appropriate. |
| 225 | Data connection open; no transfer in progress. |
| 226 | Closing data connection. Requested file action successful (for example, file transfer or file |
| abort). | |
| 227 | Entering Passive Mode (h1,h2,h3,h4,p1,p2). |
| 230 | User logged in, proceed. |
| 250 | Requested file action okay, completed. |
| 257 | "PATHNAME" created. |
| 331 | User name okay, need password. |
| 332 | Need account for login. |
| 350 | Requested file action pending further information. |
| 421 | Service not available, closing control connection. This may be a reply to any command if |
| the service knows it must shut down. | |
| 425 | Can't open data connection. |
| 426 | Connection closed; transfer aborted. |
| 450 | Requested file action not taken. File unavailable (file busy). |
| 451 | Requested action aborted: local error in processing. |
| 452 | Requested action not taken. Insufficient storage space in system. |
| 500 | Syntax error, command unrecognized. This may include errors such as command line |
| too long. | |
| 501 | Syntax error in parameters or arguments. |
| 502 | Command not implemented. |
| 503 | Bad sequence of commands. |
| 504 | Command not implemented for that parameter. |
| 530 | Not logged in. |
| 532 | Need account for storing files. |
| 550 | Requested action not taken. File unavailable (e.g., file not found, no access). |
| 551 | Requested action aborted: page type unknown. |
| 552 | Requested file action aborted. Exceeded storage allocation (for current directory or |
| dataset). | |
| 553 | Requested action not taken. File name not allowed. |