HTTP請(qǐng)求的錯(cuò)誤碼大全

//ACTION_ERROR 錯(cuò)誤定義
#define RS_OK 0
#define RS_ERROR -1
#define RS_HTTP_COMP_SERVER_EMPTY 2000 //HTTP返回字節(jié)數(shù)為0,服務(wù)器確實(shí)沒有一個(gè)文件和目錄.
#define RS_HTTP_RETURN_NULL 1000//HTTP返回字節(jié)數(shù)為0
#define RS_HTTP_RETURNBYTE_ERROR 1001//HTTP返回字節(jié)與讀出字節(jié)不相同
#define RS_NOCAPTCHA  1002//不需要驗(yàn)證碼

#define RS_RELOGIN  1003//重新登陸
#define RS_PASSWORDERROR  1004//用戶名密碼錯(cuò)誤
#define RS_LOGINERROR  1005//登陸失敗
#define RS_INTERNETDISK_NOTENOUGH  1006//網(wǎng)盤空間不足
#define RS_HTTP_READFILE_ERR 1007
#define RS_HTTP_MD5_NOTMATCH 1008
#define RS_DOWNLOAD_MOVEFILE_ERROR 1009//下載文件后介衔,移動(dòng)文件失敗
#define RS_HTTP_SIZE_NOTMATCH 1011//文件長度不同

#define RS_JsonOverflowException  2001
#define RS_JsonNullPointerException  2002
#define RS_JsonInvalidateIndexException  2003
#define RS_JsonInvalidateParamException  2004
#define RS_JsonUnsupportException  2005
#define RS_JsonUnimplementException  2006
#define RS_JsonWrongFormatException 2007
#define RS_JsonMemberNotFoundException  2008
#define RS_JsonException  2009
#define RS_NONONCE 3001//下載挑戰(zhàn)值失敗
#define RS_INPUT_NULL  3002//輸入?yún)?shù)為空

#define RS_OPENURLERROR  4001//打開網(wǎng)絡(luò)連接失敗
#define RS_GETMSGURL 4002//獲取心跳包URL失敗
#define RS_MSGCOMEBACK 4003//自己消息回調(diào)
//
#define RS_DISK_NOTENOUGH 4004//磁盤不足
#define RS_DISK_FULL 4005//磁盤已經(jīng)滿了
#define RS_UPLOAD_FILE_NOTEXIST 4006//上傳的文件不存在,或者上傳的為目錄
#define RS_UPLOAD_FILE_LATER 4007 //過一會(huì)兒再上傳
#define RS_UPLOAD_FILE_TOO_BIG 4008 //文件超大
#define RS_UNKONWN_UPLOAD     4009//無法識(shí)別上傳命令
#define RS_TIMEOUT    4010
#define RS_PARENT_PATH_NOT_EXIST    4011
#define RS_EXIST_FILE            4012
#define RS_HTTP_REGETCLIENTID    4013

12001 ERROR_INTERNET_OUT_OF_HANDLES

           No more handles could be generated at this time.

12002 ERROR_INTERNET_TIMEOUT

           The request has timed out.

12003 ERROR_INTERNET_EXTENDED_ERROR

           An extended error was returned from the server. This is
           typically a string or buffer containing a verbose error
           message. Call InternetGetLastResponseInfo to retrieve the error text.

12004 ERROR_INTERNET_INTERNAL_ERROR

           An internal error has occurred.

12005 ERROR_INTERNET_INVALID_URL

           The URL is invalid.

12006 ERROR_INTERNET_UNRECOGNIZED_SCHEME

           The URL scheme could not be recognized or is not supported.

12007 ERROR_INTERNET_NAME_NOT_RESOLVED

           The server name could not be resolved.

12008 ERROR_INTERNET_PROTOCOL_NOT_FOUND

           The requested protocol could not be located.

12009 ERROR_INTERNET_INVALID_OPTION

           A request to InternetQueryOption or InternetSetOption
           specified an invalid option value.

12010 ERROR_INTERNET_BAD_OPTION_LENGTH

           The length of an option supplied to InternetQueryOption or
           InternetSetOption is incorrect for the type of option
           specified.

12011 ERROR_INTERNET_OPTION_NOT_SETTABLE

           The request option cannot be set, only queried.

12012 ERROR_INTERNET_SHUTDOWN

           The Win32 Internet function support is being shut down or
           unloaded.

12013 ERROR_INTERNET_INCORRECT_USER_NAME

           The request to connect and log on to an FTP server could
           not be completed because the supplied user name is
           incorrect.

12014 ERROR_INTERNET_INCORRECT_PASSWORD

           The request to connect and log on to an FTP server could
           not be completed because the supplied password is
           incorrect.

12015 ERROR_INTERNET_LOGIN_FAILURE

           The request to connect to and log on to an FTP server
           failed.

12016 ERROR_INTERNET_INVALID_OPERATION

           The requested operation is invalid.

12017 ERROR_INTERNET_OPERATION_CANCELLED

           The operation was canceled, usually because the handle on
           which the request was operating was closed before the
           operation completed.

12018 ERROR_INTERNET_INCORRECT_HANDLE_TYPE

           The type of handle supplied is incorrect for this
           operation.

12019 ERROR_INTERNET_INCORRECT_HANDLE_STATE

           The requested operation cannot be carried out because the
           handle supplied is not in the correct state.

12020 ERROR_INTERNET_NOT_PROXY_REQUEST

           The request cannot be made via a proxy.

12021 ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND

           A required registry value could not be located.

12022 ERROR_INTERNET_BAD_REGISTRY_PARAMETER

           A required registry value was located but is an incorrect
           type or has an invalid value.

12023 ERROR_INTERNET_NO_DIRECT_ACCESS

           Direct network access cannot be made at this time.

12024 ERROR_INTERNET_NO_CONTEXT

           An asynchronous request could not be made because a zero
           context value was supplied.

12025 ERROR_INTERNET_NO_CALLBACK

           An asynchronous request could not be made because a
           callback function has not been set.

12026 ERROR_INTERNET_REQUEST_PENDING

           The required operation could not be completed because one
           or more requests are pending.

12027 ERROR_INTERNET_INCORRECT_FORMAT

           The format of the request is invalid.

12028 ERROR_INTERNET_ITEM_NOT_FOUND

           The requested item could not be located.

12029 ERROR_INTERNET_CANNOT_CONNECT

           The attempt to connect to the server failed.

12030 ERROR_INTERNET_CONNECTION_ABORTED

           The connection with the server has been terminated.

12031 ERROR_INTERNET_CONNECTION_RESET

           The connection with the server has been reset.

12032 ERROR_INTERNET_FORCE_RETRY

           Calls for the Win32 Internet function to redo the request.

12033 ERROR_INTERNET_INVALID_PROXY_REQUEST

           The request to the proxy was invalid.

12036 ERROR_INTERNET_HANDLE_EXISTS

           The request failed because the handle already exists.

12037 ERROR_INTERNET_SEC_CERT_DATE_INVALID

           SSL certificate date that was received from the server is
           bad. The certificate is expired.

12038 ERROR_INTERNET_SEC_CERT_CN_INVALID

           SSL certificate common name (host name field) is incorrect.
           For example, if you entered www.server.com and the common
           name on the certificate says www.different.com.

12039 ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR

           The application is moving from a non-SSL to an SSL
           connection because of a redirect.

12040 ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR

           The application is moving from an SSL to an non-SSL
           connection because of a redirect.

12041 ERROR_INTERNET_MIXED_SECURITY

           Indicates that the content is not entirely secure. Some of
           the content being viewed may have come from unsecured
           servers.

12042 ERROR_INTERNET_CHG_POST_IS_NON_SECURE

           The application is posting and attempting to change
           multiple lines of text on a server that is not secure.

12043 ERROR_INTERNET_POST_IS_NON_SECURE

           The application is posting data to a server that is not
           secure.

12110 ERROR_FTP_TRANSFER_IN_PROGRESS

           The requested operation cannot be made on the FTP session
           handle because an operation is already in progress.

12111 ERROR_FTP_DROPPED

           The FTP operation was not completed because the session was
           aborted.

12130 ERROR_GOPHER_PROTOCOL_ERROR

           An error was detected while parsing data returned from the
           gopher server.

12131 ERROR_GOPHER_NOT_FILE

           The request must be made for a file locator.

12132 ERROR_GOPHER_DATA_ERROR

           An error was detected while receiving data from the gopher
           server.

12133 ERROR_GOPHER_END_OF_DATA

           The end of the data has been reached.

12134 ERROR_GOPHER_INVALID_LOCATOR

           The supplied locator is not valid.

12135 ERROR_GOPHER_INCORRECT_LOCATOR_TYPE

           The type of the locator is not correct for this operation.

12136 ERROR_GOPHER_NOT_GOPHER_PLUS

           The requested operation can only be made against a Gopher+
           server or with a locator that specifies a Gopher+
           operation.

12137 ERROR_GOPHER_ATTRIBUTE_NOT_FOUND

           The requested attribute could not be located.

12138 ERROR_GOPHER_UNKNOWN_LOCATOR

           The locator type is unknown.

12150 ERROR_HTTP_HEADER_NOT_FOUND

           The requested header could not be located.

12151 ERROR_HTTP_DOWNLEVEL_SERVER

           The server did not return any headers.

12152 ERROR_HTTP_INVALID_SERVER_RESPONSE

           The server response could not be parsed.

12153 ERROR_HTTP_INVALID_HEADER

           The supplied header is invalid.

12154 ERROR_HTTP_INVALID_QUERY_REQUEST

           The request made to HttpQueryInfo is invalid.

12155 ERROR_HTTP_HEADER_ALREADY_EXISTS

           The header could not be added because it already exists.

12156 ERROR_HTTP_REDIRECT_FAILED

           The redirection failed because either the scheme changed
           (for example, HTTP to FTP) or all attempts made to redirect
           failed (default is five attempts).
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市页屠,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌风纠,老刑警劉巖蟆豫,帶你破解...
    沈念sama閱讀 221,273評(píng)論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件十减,死亡現(xiàn)場離奇詭異愤估,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)由驹,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,349評(píng)論 3 398
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來并炮,“玉大人甥郑,你說我怎么就攤上這事∥榉” “怎么了勉躺?”我有些...
    開封第一講書人閱讀 167,709評(píng)論 0 360
  • 文/不壞的土叔 我叫張陵饵溅,是天一觀的道長。 經(jīng)常有香客問我碧注,道長糖赔,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 59,520評(píng)論 1 296
  • 正文 為了忘掉前任逝变,我火速辦了婚禮奋构,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘宴咧。我一直安慰自己径缅,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 68,515評(píng)論 6 397
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著氏堤,像睡著了一般。 火紅的嫁衣襯著肌膚如雪闪檬。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,158評(píng)論 1 308
  • 那天虚循,我揣著相機(jī)與錄音为黎,去河邊找鬼。 笑死剪廉,一個(gè)胖子當(dāng)著我的面吹牛炕檩,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播泉沾,決...
    沈念sama閱讀 40,755評(píng)論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼跷究,長吁一口氣:“原來是場噩夢(mèng)啊……” “哼敲霍!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起柴我,我...
    開封第一講書人閱讀 39,660評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤扩然,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后界睁,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體索守,經(jīng)...
    沈念sama閱讀 46,203評(píng)論 1 319
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡卵佛,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,287評(píng)論 3 340
  • 正文 我和宋清朗相戀三年截汪,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片衙解。...
    茶點(diǎn)故事閱讀 40,427評(píng)論 1 352
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡蚓峦,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出霍转,到底是詐尸還是另有隱情一汽,我是刑警寧澤,帶...
    沈念sama閱讀 36,122評(píng)論 5 349
  • 正文 年R本政府宣布岩喷,位于F島的核電站监憎,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏偷霉。R本人自食惡果不足惜徙垫,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,801評(píng)論 3 333
  • 文/蒙蒙 一瞒滴、第九天 我趴在偏房一處隱蔽的房頂上張望赞警。 院中可真熱鬧,春花似錦世剖、人聲如沸笤虫。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,272評(píng)論 0 23
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至稠屠,卻和暖如春翎苫,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背攘蔽。 一陣腳步聲響...
    開封第一講書人閱讀 33,393評(píng)論 1 272
  • 我被黑心中介騙來泰國打工粱快, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人漫雷。 一個(gè)月前我還...
    沈念sama閱讀 48,808評(píng)論 3 376
  • 正文 我出身青樓降盹,卻偏偏與公主長得像谤辜,于是被迫代替她去往敵國和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子丑念,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,440評(píng)論 2 359

推薦閱讀更多精彩內(nèi)容