curl
curl Exit Codes
Exit codes returned by the curl command-line tool when a transfer fails.
59 codes
references curl.se/docs/manpage.html
· All codes 59 codes
- 0 OK The operation completed successfully.
- 1 Unsupported protocol The URL scheme is not supported by this build of curl.
- 2 Failed to initialise curl failed to initialise. This is very rare.
- 3 Malformed URL The URL was not properly formatted.
- 4 Feature not available A feature required for the operation is not available in this build of curl.
- 5 Could not resolve proxy The given proxy host could not be resolved.
- 6 Could not resolve host The given remote host could not be resolved.
- 7 Failed to connect curl failed to connect to the host.
- 8 Weird server reply The server sent a response that curl could not parse.
- 9 FTP access denied Access to the FTP server was denied.
- 10 FTP accept failed curl failed to accept a connection from the FTP server.
- 11 FTP weird PASS reply The FTP server returned an unexpected reply to the PASS command.
- 12 FTP accept timeout Timed out waiting for a connection from the FTP server.
- 13 FTP weird PASV reply The FTP server returned an unexpected reply to the PASV command.
- 14 FTP weird 227 format curl could not parse the 227-line from the FTP server.
- 15 FTP cannot get host Could not get the host from the 227-line of the FTP server.
- 16 HTTP/2 error A problem was detected in the HTTP/2 framing layer.
- 17 FTP could not set type The FTP server failed to set the transfer type to binary.
- 18 Partial file Only a part of the file was transferred. The download was incomplete.
- 19 FTP could not download The FTP RETR command failed or the file was not downloaded.
- 21 FTP quote error A command from the -Q option returned an error from the server.
- 22 HTTP page not retrieved The HTTP server returned an error response (4xx or 5xx) and --fail was set.
- 23 Write error An error occurred writing the received data to a local file.
- 25 FTP could not STOR file The FTP server rejected the STOR command.
- 26 Read error An error occurred reading a local file for upload.
- 27 Out of memory A memory allocation request failed.
- 28 Operation timeout The operation timed out. The transfer took longer than the configured timeout.
- 30 FTP PORT failed The FTP PORT command returned an error.
- 31 FTP could not use REST The FTP REST command returned an error; curl cannot resume the transfer.
- 33 HTTP range error The server does not support or accept the requested byte range.
- 34 HTTP post error An internal problem occurred with the HTTP POST operation.
- 35 SSL connect error The SSL/TLS handshake failed.
- 36 FTP bad download resume The download could not be resumed at the requested offset.
- 37 FILE read error The file could not be read from a FILE:// URL.
- 38 LDAP bind operation failed The LDAP bind operation failed.
- 39 LDAP search failed The LDAP search failed.
- 41 Function not found A required LDAP function was not found.
- 42 Aborted by callback The transfer was aborted by a callback function.
- 43 Internal error An internal error occurred. A function was called with a bad parameter.
- 45 Interface error The specified outgoing network interface could not be used.
- 47 Too many redirects curl followed too many redirects. The maximum redirect limit was reached.
- 48 Unknown option An option passed to curl was not recognised.
- 49 Malformed telnet option A telnet option string was improperly formatted.
- 51 Peer certificate verification failed The remote server's certificate could not be verified against the CA bundle.
- 52 Empty reply from server The server returned nothing — no headers, no data.
- 53 SSL crypto engine not found The requested SSL crypto engine was not found.
- 54 SSL crypto engine default failed Failed to set the selected SSL crypto engine as the default.
- 55 Network send failure Sending data over the network failed.
- 56 Network receive failure Receiving data over the network failed.
- 58 Problem with local certificate The local client certificate could not be used.
- 59 Could not use SSL cipher The specified SSL cipher could not be used.
- 60 Peer certificate not verified The peer certificate cannot be authenticated with the known CA certificates.
- 61 Unrecognised transfer encoding The server used a transfer encoding that curl did not recognise.
- 63 Maximum file size exceeded The file transfer exceeded the configured maximum size (--max-filesize).
- 67 Login denied The server denied the login credentials.
- 73 Remote file already exists The file to be uploaded already exists on the server and cannot be overwritten.
- 77 Problem with SSL CA cert Problem with the SSL CA certificate. The file cannot be read or the path is wrong.
- 78 Remote file not found The requested URL resource was not found on the remote server.
- 92 HTTP/2 stream error The HTTP/2 stream was not closed cleanly.