Guest User

CURL Codes

a guest
Feb 23rd, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1. typedef enum {
  2. CURLE_OK = 0,
  3. CURLE_UNSUPPORTED_PROTOCOL, /* 1 */
  4. CURLE_FAILED_INIT, /* 2 */
  5. CURLE_URL_MALFORMAT, /* 3 */
  6. CURLE_NOT_BUILT_IN, /* 4 - [was obsoleted in August 2007 for
  7. 7.17.0, reused in April 2011 for 7.21.5] */
  8. CURLE_COULDNT_RESOLVE_PROXY, /* 5 */
  9. CURLE_COULDNT_RESOLVE_HOST, /* 6 */
  10. CURLE_COULDNT_CONNECT, /* 7 */
  11. CURLE_WEIRD_SERVER_REPLY, /* 8 */
  12. CURLE_REMOTE_ACCESS_DENIED, /* 9 a service was denied by the server
  13. due to lack of access - when login fails
  14. this is not returned. */
  15. CURLE_FTP_ACCEPT_FAILED, /* 10 - [was obsoleted in April 2006 for
  16. 7.15.4, reused in Dec 2011 for 7.24.0]*/
  17. CURLE_FTP_WEIRD_PASS_REPLY, /* 11 */
  18. CURLE_FTP_ACCEPT_TIMEOUT, /* 12 - timeout occurred accepting server
  19. [was obsoleted in August 2007 for 7.17.0,
  20. reused in Dec 2011 for 7.24.0]*/
  21. CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */
  22. CURLE_FTP_WEIRD_227_FORMAT, /* 14 */
  23. CURLE_FTP_CANT_GET_HOST, /* 15 */
  24. CURLE_HTTP2, /* 16 - A problem in the http2 framing layer.
  25. [was obsoleted in August 2007 for 7.17.0,
  26. reused in July 2014 for 7.38.0] */
  27. CURLE_FTP_COULDNT_SET_TYPE, /* 17 */
  28. CURLE_PARTIAL_FILE, /* 18 */
  29. CURLE_FTP_COULDNT_RETR_FILE, /* 19 */
  30. CURLE_OBSOLETE20, /* 20 - NOT USED */
  31. CURLE_QUOTE_ERROR, /* 21 - quote command failure */
  32. CURLE_HTTP_RETURNED_ERROR, /* 22 */
  33. CURLE_WRITE_ERROR, /* 23 */
  34. CURLE_OBSOLETE24, /* 24 - NOT USED */
  35. CURLE_UPLOAD_FAILED, /* 25 - failed upload "command" */
  36. CURLE_READ_ERROR, /* 26 - couldn't open/read from file */
  37. CURLE_OUT_OF_MEMORY, /* 27 */
  38. /* Note: CURLE_OUT_OF_MEMORY may sometimes indicate a conversion error
  39. instead of a memory allocation error if CURL_DOES_CONVERSIONS
  40. is defined
  41. */
  42. CURLE_OPERATION_TIMEDOUT, /* 28 - the timeout time was reached */
  43. CURLE_OBSOLETE29, /* 29 - NOT USED */
  44. CURLE_FTP_PORT_FAILED, /* 30 - FTP PORT operation failed */
  45. CURLE_FTP_COULDNT_USE_REST, /* 31 - the REST command failed */
  46. CURLE_OBSOLETE32, /* 32 - NOT USED */
  47. CURLE_RANGE_ERROR, /* 33 - RANGE "command" didn't work */
  48. CURLE_HTTP_POST_ERROR, /* 34 */
  49. CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */
  50. CURLE_BAD_DOWNLOAD_RESUME, /* 36 - couldn't resume download */
  51. CURLE_FILE_COULDNT_READ_FILE, /* 37 */
  52. CURLE_LDAP_CANNOT_BIND, /* 38 */
  53. CURLE_LDAP_SEARCH_FAILED, /* 39 */
  54. CURLE_OBSOLETE40, /* 40 - NOT USED */
  55. CURLE_FUNCTION_NOT_FOUND, /* 41 - NOT USED starting with 7.53.0 */
  56. CURLE_ABORTED_BY_CALLBACK, /* 42 */
  57. CURLE_BAD_FUNCTION_ARGUMENT, /* 43 */
  58. CURLE_OBSOLETE44, /* 44 - NOT USED */
  59. CURLE_INTERFACE_FAILED, /* 45 - CURLOPT_INTERFACE failed */
  60. CURLE_OBSOLETE46, /* 46 - NOT USED */
  61. CURLE_TOO_MANY_REDIRECTS, /* 47 - catch endless re-direct loops */
  62. CURLE_UNKNOWN_OPTION, /* 48 - User specified an unknown option */
  63. CURLE_TELNET_OPTION_SYNTAX, /* 49 - Malformed telnet option */
  64. CURLE_OBSOLETE50, /* 50 - NOT USED */
  65. CURLE_PEER_FAILED_VERIFICATION, /* 51 - peer's certificate or fingerprint
  66. wasn't verified fine */
  67. CURLE_GOT_NOTHING, /* 52 - when this is a specific error */
  68. CURLE_SSL_ENGINE_NOTFOUND, /* 53 - SSL crypto engine not found */
  69. CURLE_SSL_ENGINE_SETFAILED, /* 54 - can not set SSL crypto engine as
  70. default */
  71. CURLE_SEND_ERROR, /* 55 - failed sending network data */
  72. CURLE_RECV_ERROR, /* 56 - failure in receiving network data */
  73. CURLE_OBSOLETE57, /* 57 - NOT IN USE */
  74. CURLE_SSL_CERTPROBLEM, /* 58 - problem with the local certificate */
  75. CURLE_SSL_CIPHER, /* 59 - couldn't use specified cipher */
  76. CURLE_SSL_CACERT, /* 60 - problem with the CA cert (path?) */
  77. CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized/bad encoding */
  78. CURLE_LDAP_INVALID_URL, /* 62 - Invalid LDAP URL */
  79. CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */
  80. CURLE_USE_SSL_FAILED, /* 64 - Requested FTP SSL level failed */
  81. CURLE_SEND_FAIL_REWIND, /* 65 - Sending the data requires a rewind
  82. that failed */
  83. CURLE_SSL_ENGINE_INITFAILED, /* 66 - failed to initialise ENGINE */
  84. CURLE_LOGIN_DENIED, /* 67 - user, password or similar was not
  85. accepted and we failed to login */
  86. CURLE_TFTP_NOTFOUND, /* 68 - file not found on server */
  87. CURLE_TFTP_PERM, /* 69 - permission problem on server */
  88. CURLE_REMOTE_DISK_FULL, /* 70 - out of disk space on server */
  89. CURLE_TFTP_ILLEGAL, /* 71 - Illegal TFTP operation */
  90. CURLE_TFTP_UNKNOWNID, /* 72 - Unknown transfer ID */
  91. CURLE_REMOTE_FILE_EXISTS, /* 73 - File already exists */
  92. CURLE_TFTP_NOSUCHUSER, /* 74 - No such user */
  93. CURLE_CONV_FAILED, /* 75 - conversion failed */
  94. CURLE_CONV_REQD, /* 76 - caller must register conversion
  95. callbacks using curl_easy_setopt options
  96. CURLOPT_CONV_FROM_NETWORK_FUNCTION,
  97. CURLOPT_CONV_TO_NETWORK_FUNCTION, and
  98. CURLOPT_CONV_FROM_UTF8_FUNCTION */
  99. CURLE_SSL_CACERT_BADFILE, /* 77 - could not load CACERT file, missing
  100. or wrong format */
  101. CURLE_REMOTE_FILE_NOT_FOUND, /* 78 - remote file not found */
  102. CURLE_SSH, /* 79 - error from the SSH layer, somewhat
  103. generic so the error message will be of
  104. interest when this has happened */
  105.  
  106. CURLE_SSL_SHUTDOWN_FAILED, /* 80 - Failed to shut down the SSL
  107. connection */
  108. CURLE_AGAIN, /* 81 - socket is not ready for send/recv,
  109. wait till it's ready and try again (Added
  110. in 7.18.2) */
  111. CURLE_SSL_CRL_BADFILE, /* 82 - could not load CRL file, missing or
  112. wrong format (Added in 7.19.0) */
  113. CURLE_SSL_ISSUER_ERROR, /* 83 - Issuer check failed. (Added in
  114. 7.19.0) */
  115. CURLE_FTP_PRET_FAILED, /* 84 - a PRET command failed */
  116. CURLE_RTSP_CSEQ_ERROR, /* 85 - mismatch of RTSP CSeq numbers */
  117. CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Ids */
  118. CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */
  119. CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */
  120. CURLE_NO_CONNECTION_AVAILABLE, /* 89 - No connection available, the
  121. session will be queued */
  122. CURLE_SSL_PINNEDPUBKEYNOTMATCH, /* 90 - specified pinned public key did not
  123. match */
  124. CURLE_SSL_INVALIDCERTSTATUS, /* 91 - invalid certificate status */
  125. CURLE_HTTP2_STREAM, /* 92 - stream error in HTTP/2 framing layer
  126. */
  127. CURLE_RECURSIVE_API_CALL, /* 93 - an api function was called from
  128. inside a callback */
  129. CURL_LAST /* never use! */
  130. } CURLcode;
Advertisement
Add Comment
Please, Sign In to add comment