Updated June 2022
The following status (or error) codes can be returned from the various ASHNET-based routines (including FTP2, HTTP, CRYPTO and OAUTH2), typically in the status parameter. In some cases individual routines may have their own status symbols defined but they all derive from this table.
Note the existence of a function Fn'AshNet'Error$(status) in the SOSLIB fnashnet.bsi module which returns the descriptions from the table.
Symbol |
Value |
Description |
---|---|---|
ANETERR_TOOFEW |
-1 |
too few params |
ANETERR_NOMEM |
-2 |
can't malloc (or out of malloc hdls) |
ANETERR_BADOPCODE |
-3 |
no such Opcode |
ANETERR_PERR |
-4 |
misc param error |
ANETERR_LIBLINK |
-5 |
can't dynamically link library |
ANETERR_LICENSE |
-6 |
license failure |
ANETERR_ADDFILE |
-7 |
error during adding file (upload) |
ANETERR_SYNCREQ |
-8 |
error during SyncRequest |
ANETERR_POSTFILE |
-9 |
error processing file for post |
ANETERR_STRALC |
-10 |
unable to allocate string buf |
ANETERR_PUTREQ |
-11 |
error during put |
ANETERR_DOWNLOAD |
-12 |
error during download |
ANETERR_LOGIN |
-13 |
unable to log in to server (FTP OR SSH) |
ANETERR_DIR |
-14 |
unable to log to directory on server (FTP) |
ANETERR_CONNECT |
-15 |
failure to connect (ssh) |
ANETERR_SESSION |
-17 |
open session failure (ssh) |
ANETERR_PTY |
-18 |
pty (termtype?) failure (ssh) |
ANETERR_SHELL |
-19 |
shell startup failure (ssh) |
ANETERR_RECV |
-20 |
error receiving data (ssh) |
ANETERR_SEND |
-21 |
error sending data (ssh) |
ANETERR_DISCONNECT |
-22 |
connection lost (ssh) |
ANETERR_NOCHANNEL |
-23 |
no channel (ssh) |
ANETERR_EOF |
-24 |
received eof (ssh) |
ANETERR_CERT |
-25 |
cert problem |
ANETERR_GET |
-26 |
get failed (no access?) |
ANETERR_BADCIPHER |
-27 |
bad cipher type |
ANETERR_BADKEYLEN |
-28 |
invalid key len |
ANETERR_BADCIPHERMODE |
-29 |
bad cipher mode |
ANETERR_BADPADDING |
-30 |
bad padding value |
ANETERR_BADFILE |
-31 |
bad file (or file error) |
ANETERR_CRYPTERR |
-32 |
catch-all CRYPT errors |
ANETERR_BADENCODE |
-33 |
bad encoding |
ANETERR_BADPUBKEY |
-34 |
bad public key (or error extracting it) |
ANETERR_BADPRVKEY |
-35 |
bad private key (or error extracting it) |
ANETERR_OPENREMOTE |
-36 |
failure to open remote file |
ANETERR_BUSY |
-37 |
attempt to call function already executing |
ANETERR_UPLOAD |
-38 |
error uploading (possibly local file doesn't exist?) |
ANETERR_CLOSEREMOTE |
-39 |
error close remote |
ANETERR_DEL |
-40 |
error during remote delete |
ANETERR_OAUTH2_FC |
-41 |
OAuth2 failed to complete |
ANETERR_OAUTH2_DENIED |
-42 |
OAuth2 denied |
ANETERR_OAUTH2_FLOW |
-43 |
OAuth2 unexpected flow state |
ANETERR_RENAME |
-44 |
error renaming remote file or dir |
ANETERR_VERIFY |
-45 |
xmlsig failed to verify |
ANETERR_LOADSIG |
-46 |
error loading signature |
ANETERR_ADDREF |
-47 |
invalid addref argument (XMLSIG) |
ANETERR_PLATFORM |
-99 |
unsupported platform (Windows only) |
Definition file: fnashnet.bsi |