diff options
-rw-r--r-- | docs/libcurl/libcurl-errors.3 | 4 | ||||
-rw-r--r-- | include/curl/curl.h | 5 | ||||
-rw-r--r-- | lib/transfer.c | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/docs/libcurl/libcurl-errors.3 b/docs/libcurl/libcurl-errors.3 index 7181e0b08..bc0bbe64b 100644 --- a/docs/libcurl/libcurl-errors.3 +++ b/docs/libcurl/libcurl-errors.3 @@ -2,7 +2,7 @@ .\" nroff -man [file] .\" $Id$ .\" -.TH libcurl-errors 3 "10 April 2002" "libcurl 7.9.6" "libcurl errors" +.TH libcurl-errors 3 "18 Dec 2002" "libcurl 7.10.3" "libcurl errors" .SH NAME error codes in libcurl .SH DESCRIPTION @@ -104,7 +104,7 @@ After a completed file transfer, the FTP server did not respond a proper When sending custom "QUOTE" commands to the remote server, one of the commands returned an error code that was 400 or higher. .TP -.B CURLE_HTTP_NOT_FOUND (22) +.B CURLE_HTTP_RETURNED_ERROR (22) This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server returns an error code that is >= 400. .TP diff --git a/include/curl/curl.h b/include/curl/curl.h index 9c04733e2..b60a9f0da 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -162,7 +162,7 @@ typedef enum { CURLE_FTP_COULDNT_RETR_FILE, /* 19 */ CURLE_FTP_WRITE_ERROR, /* 20 */ CURLE_FTP_QUOTE_ERROR, /* 21 */ - CURLE_HTTP_NOT_FOUND, /* 22 */ + CURLE_HTTP_RETURNED_ERROR, /* 22 */ CURLE_WRITE_ERROR, /* 23 */ CURLE_MALFORMAT_USER, /* 24 - user name is illegally specified */ CURLE_FTP_COULDNT_STOR_FILE, /* 25 - failed FTP upload */ @@ -209,6 +209,7 @@ typedef enum { /* Make a spelling correction for the operation timed-out define */ #define CURLE_OPERATION_TIMEDOUT CURLE_OPERATION_TIMEOUTED +#define CURLE_HTTP_NOT_FOUND CURLE_HTTP_RETURNED_ERROR typedef enum { CURLPROXY_HTTP = 0, @@ -807,7 +808,7 @@ CURLcode curl_global_init(long flags); void curl_global_cleanup(void); /* This is the version number */ -#define LIBCURL_VERSION "7.10.3-pre2" +#define LIBCURL_VERSION "7.10.3-test" #define LIBCURL_VERSION_NUM 0x070a03 /* linked-list structure for the CURLOPT_QUOTE option (and other) */ diff --git a/lib/transfer.c b/lib/transfer.c index db59ca5ad..eca2cad7b 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -481,7 +481,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, here is the check for that: */ /* serious error, go home! */ failf (data, "The requested file was not found"); - return CURLE_HTTP_NOT_FOUND; + return CURLE_HTTP_RETURNED_ERROR; } if(k->httpversion == 10) |