namespace CurlSharp.Enums { /// /// Status code returned from functions. /// public enum CurlCode { /// /// All fine. Proceed as usual. /// Ok = 0, /// /// Aborted by callback. An internal callback returned "abort" /// to libcurl. /// AbortedByCallback = 42, /// /// Internal error. A function was called in a bad order. /// BadCallingOrder = 44, /// /// Unrecognized transfer encoding. /// BadContentEncoding = 61, /// /// Attempting FTP resume beyond file size. /// BadDownloadResume = 36, /// /// Internal error. A function was called with a bad parameter. /// BadFunctionArgument = 43, /// /// Bad password entered. An error was signaled when the password was /// entered. This can also be the result of a "bad password" returned /// from a specified password callback. /// BadPasswordEntered = 46, /// /// Failed to connect to host or proxy. /// CouldntConnect = 7, /// /// Couldn't resolve host. The given remote host was not resolved. /// CouldntResolveHost = 6, /// /// Couldn't resolve proxy. The given proxy host could not be resolved. /// CouldntResolveProxy = 5, /// /// Very early initialization code failed. This is likely to be an /// internal error or problem. /// FailedInit = 2, /// /// Maximum file size exceeded. /// FilesizeExceeded = 63, /// /// A file given with FILE:// couldn't be opened. Most likely /// because the file path doesn't identify an existing file. Did /// you check file permissions? /// FileCouldntReadFile = 37, /// /// We were denied access when trying to login to an FTP server or /// when trying to change working directory to the one given in the URL. /// FtpAccessDenied = 9, /// /// An internal failure to lookup the host used for the new /// connection. /// FtpCantGetHost = 15, /// /// A bad return code on either PASV or EPSV was sent by the FTP /// server, preventing libcurl from being able to continue. /// FtpCantReconnect = 16, /// /// The FTP SIZE command returned error. SIZE is not a kosher FTP /// command, it is an extension and not all servers support it. This /// is not a surprising error. /// FtpCouldntGetSize = 32, /// /// This was either a weird reply to a 'RETR' command or a zero byte /// transfer complete. /// FtpCouldntRetrFile = 19, /// /// libcurl failed to set ASCII transfer type (TYPE A). /// FtpCouldntSetAscii = 29, /// /// Received an error when trying to set the transfer mode to binary. /// FtpCouldntSetBinary = 17, /// /// FTP couldn't STOR file. The server denied the STOR operation. /// The error buffer usually contains the server's explanation to this. /// FtpCouldntStorFile = 25, /// /// The FTP REST command returned error. This should never happen /// if the server is sane. /// FtpCouldntUseRest = 31, /// /// The FTP PORT command returned error. This mostly happen when /// you haven't specified a good enough address for libcurl to use. /// See . /// FtpPortFailed = 30, /// /// When sending custom "QUOTE" commands to the remote server, one /// of the commands returned an error code that was 400 or higher. /// FtpQuoteError = 21, /// /// Requested FTP Ssl level failed. /// FtpSslFailed = 64, /// /// The FTP server rejected access to the server after the password /// was sent to it. It might be because the username and/or the /// password were incorrect or just that the server is not allowing /// you access for the moment etc. /// FtpUserPasswordIncorrect = 10, /// /// FTP servers return a 227-line as a response to a PASV command. /// If libcurl fails to parse that line, this return code is /// passed back. /// FtpWeird227Format = 14, /// /// After having sent the FTP password to the server, libcurl expects /// a proper reply. This error code indicates that an unexpected code /// was returned. /// FtpWeirdPassReply = 11, /// /// libcurl failed to get a sensible result back from the server as /// a response to either a PASV or a EPSV command. The server is flawed. /// FtpWeirdPasvReply = 13, /// /// After connecting to an FTP server, libcurl expects to get a /// certain reply back. This error code implies that it got a strange /// or bad reply. The given remote server is probably not an /// OK FTP server. /// FtpWeirdServerReply = 8, /// /// After having sent user name to the FTP server, libcurl expects a /// proper reply. This error code indicates that an unexpected code /// was returned. /// FtpWeirdUserReply = 12, /// /// After a completed file transfer, the FTP server did not respond a /// proper "transfer successful" code. /// FtpWriteError = 20, /// /// Function not found. A required LDAP function was not found. /// FunctionNotFound = 41, /// /// Nothing was returned from the server, and under the circumstances, /// getting nothing is considered an error. /// GotNothing = 52, /// /// This is an odd error that mainly occurs due to internal confusion. /// HttpPostError = 34, /// /// The HTTP server does not support or accept range requests. /// HttpRangeError = 33, /// /// This is returned if /// is set TRUE and the HTTP server returns an error code that /// is >= 400. /// HttpReturnedError = 22, /// /// Interface error. A specified outgoing interface could not be /// used. Set which interface to use for outgoing connections' /// source IP address with . /// InterfaceFailed = 45, /// /// End-of-enumeration marker; do not use in client applications. /// Last = 67, /// /// LDAP cannot bind. LDAP bind operation failed. /// LdapCannotBind = 38, /// /// Invalid LDAP URL. /// LdapInvalidUrl = 62, /// /// LDAP search failed. /// LdapSearchFailed = 39, /// /// Library not found. The LDAP library was not found. /// LibraryNotFound = 40, /// /// Malformat user. User name badly specified. *Not currently used* /// MalformatUser = 24, /// /// This is not an error. This used to be another error code in an /// old libcurl version and is currently unused. /// Obsolete = 50, /// /// Operation timeout. The specified time-out period was reached /// according to the conditions. /// OperationTimeouted = 28, /// /// Out of memory. A memory allocation request failed. This is serious /// badness and things are severely messed up if this ever occurs. /// OutOfMemory = 27, /// /// A file transfer was shorter or larger than expected. This /// happens when the server first reports an expected transfer size, /// and then delivers data that doesn't match the previously /// given size. /// PartialFile = 18, /// /// There was a problem reading a local file or an error returned by /// the read callback. /// ReadError = 26, /// /// Failure with receiving network data. /// RecvError = 56, /// /// Failed sending network data. /// SendError = 55, /// /// Sending the data requires a rewind that failed. /// SendFailRewind = 65, /// /// CurlShare is in use. /// ShareInUse = 57, /// /// Problem with the CA cert (path? access rights?) /// SslCaCert = 60, /// /// There's a problem with the local client certificate. /// SslCertProblem = 58, /// /// Couldn't use specified cipher. /// SslCipher = 59, /// /// A problem occurred somewhere in the Ssl/TLS handshake. You really /// want to use the delegate and read /// the message there as it pinpoints the problem slightly more. It /// could be certificates (file formats, paths, permissions), /// passwords, and others. /// SslConnectError = 35, /// /// Failed to initialize Ssl engine. /// SslEngineInitFailed = 66, /// /// The specified crypto engine wasn't found. /// SslEngineNotFound = 53, /// /// Failed setting the selected Ssl crypto engine as default! /// SslEngineSetFailed = 54, /// /// The remote server's Ssl certificate was deemed not OK. /// SslPeerCertificate = 51, /// /// A telnet option string was improperly formatted. /// TelnetOptionSyntax = 49, /// /// Too many redirects. When following redirects, libcurl hit the /// maximum amount. Set your limit with /// . /// TooManyRedirects = 47, /// /// An option set with /// was not recognized/known. Refer to the appropriate documentation. /// UnknownTelnetOption = 48, /// /// The URL you passed to libcurl used a protocol that this libcurl /// does not support. The support might be a compile-time option that /// wasn't used, it can be a misspelled protocol string or just a /// protocol libcurl has no code for. /// UnsupportedProtocol = 1, /// /// The URL was not properly formatted. /// UrlMalformat = 3, /// /// URL user malformatted. The user-part of the URL syntax was not /// correct. /// UrlMalformatUser = 4, /// /// An error occurred when writing received data to a local file, /// or an error was returned to libcurl from a write callback. /// WriteError = 23, }; }