HTTP 响应状态码
<script type="text/javascript"></script>
#define HTTP_STATUS_CONTINUE 100 OK to continue with request.
#define HTTP_STATUS_SWITCH_PROTOCOLS 101 Server has switched
protocols in upgrade header.
#define HTTP_STATUS_OK 200 Request complete.
#define HTTP_STATUS_CREATED 201 Object created, reason = new
URI.
#define HTTP_STATUS_ACCEPTED 202 Async completion (TBS).
#define HTTP_STATUS_PARTIAL 203 Partial completion.
#define HTTP_STATUS_NO_CONTENT 204 No information to return.
#define HTTP_STATUS_RESET_CONTENT 205 Request complete, clear form.
#define HTTP_STATUS_PARTIAL_CONTENT 206 Partial GET fulfilled.
#define HTTP_STATUS_AMBIGUOUS 300 Server could not determine
what to return.
#define HTTP_STATUS_MOVED 301 Object permanently moved.
#define HTTP_STATUS_REDIRECT 302 Object temporarily moved.
#define HTTP_STATUS_REDIRECT_METHOD 303 Redirection with new access
method.
#define HTTP_STATUS_NOT_MODIFIED 304 If-modified-since was not
modified.
#define HTTP_STATUS_USE_PROXY 305 Redirection to proxy,
location header specifies
proxy to use.
#define HTTP_STATUS_REDIRECT_KEEP_VERB 307 HTTP/1.1: keep same verb.
#define HTTP_STATUS_BAD_REQUEST 400 Invalid syntax.
#define HTTP_STATUS_DENIED 401 Access denied.
#define HTTP_STATUS_PAYMENT_REQ 402 Payment required.
#define HTTP_STATUS_FORBIDDEN 403 Request forbidden.
#define HTTP_STATUS_NOT_FOUND 404 Object not found.
#define HTTP_STATUS_BAD_METHOD 405 Method is not allowed.
#define HTTP_STATUS_NONE_ACCEPTABLE 406 No response acceptable to
client found.
#define HTTP_STATUS_PROXY_AUTH_REQ 407 Proxy authentication
required.
#define HTTP_STATUS_REQUEST_TIMEOUT 408 Server timed out waiting for
request.
#define HTTP_STATUS_CONFLICT 409 User should resubmit with
more information.
#define HTTP_STATUS_GONE 410 The resource is no longer
available.
#define HTTP_STATUS_LENGTH_REQUIRED 411 The server refused to accept
request without a length.
#define HTTP_STATUS_PRECOND_FAILED 412 Precondition given in
request failed.
#define HTTP_STATUS_REQUEST_TOO_LARGE 413 Request entity was too large.
#define HTTP_STATUS_URI_TOO_LONG 414 Request URI too long.
#define HTTP_STATUS_UNSUPPORTED_MEDIA 415 Unsupported media type.
#define HTTP_STATUS_RETRY_WITH 449 Retry after doing the
appropriate action.
#define HTTP_STATUS_SERVER_ERROR 500 Internal server error.
#define HTTP_STATUS_NOT_SUPPORTED 501 Required not supported.
#define HTTP_STATUS_BAD_GATEWAY 502 Error response received from
gateway.
#define HTTP_STATUS_SERVICE_UNAVAIL 503 Temporarily overloaded.
#define HTTP_STATUS_GATEWAY_TIMEOUT 504 Timed out waiting for
gateway.
#define HTTP_STATUS_VERSION_NOT_SUP 505 HTTP version not supported.
返回 Internet API 错误
<script type="text/javascript"><!--mce:1--></script>
#define INTERNET_ERROR_BASE 12000
#define ERROR_INTERNET_OUT_OF_HANDLES 12001
#define ERROR_INTERNET_TIMEOUT 12002
#define ERROR_INTERNET_EXTENDED_ERROR 12003
#define ERROR_INTERNET_INTERNAL_ERROR 12004
#define ERROR_INTERNET_INVALID_URL 12005
#define ERROR_INTERNET_UNRECOGNIZED_SCHEME 12006
#define ERROR_INTERNET_NAME_NOT_RESOLVED 12007
#define ERROR_INTERNET_PROTOCOL_NOT_FOUND 12008
#define ERROR_INTERNET_INVALID_OPTION 12009
#define ERROR_INTERNET_BAD_OPTION_LENGTH 12010
#define ERROR_INTERNET_OPTION_NOT_SETTABLE 12011
#define ERROR_INTERNET_SHUTDOWN 12012
#define ERROR_INTERNET_INCORRECT_USER_NAME 12013
#define ERROR_INTERNET_INCORRECT_PASSWORD 12014
#define ERROR_INTERNET_LOGIN_FAILURE 12015
#define ERROR_INTERNET_INVALID_OPERATION 12016
#define ERROR_INTERNET_OPERATION_CANCELLED 12017
#define ERROR_INTERNET_INCORRECT_HANDLE_TYPE 12018
#define ERROR_INTERNET_INCORRECT_HANDLE_STATE 12019
#define ERROR_INTERNET_NOT_PROXY_REQUEST 12020
#define ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND 12021
#define ERROR_INTERNET_BAD_REGISTRY_PARAMETER 12022
#define ERROR_INTERNET_NO_DIRECT_ACCESS 12023
#define ERROR_INTERNET_NO_CONTEXT 12024
#define ERROR_INTERNET_NO_CALLBACK 12025
#define ERROR_INTERNET_REQUEST_PENDING 12026
#define ERROR_INTERNET_INCORRECT_FORMAT 12027
#define ERROR_INTERNET_ITEM_NOT_FOUND 12028
#define ERROR_INTERNET_CANNOT_CONNECT 12029
#define ERROR_INTERNET_CONNECTION_ABORTED 12030
#define ERROR_INTERNET_CONNECTION_RESET 12031
#define ERROR_INTERNET_FORCE_RETRY 12032
#define ERROR_INTERNET_INVALID_PROXY_REQUEST 12033
#define ERROR_INTERNET_NEED_UI 12034
#define ERROR_INTERNET_HANDLE_EXISTS 12036
#define ERROR_INTERNET_SEC_CERT_DATE_INVALID 12037
#define ERROR_INTERNET_SEC_CERT_CN_INVALID 12038
#define ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR 12039
#define ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR 12040
#define ERROR_INTERNET_MIXED_SECURITY 12041
#define ERROR_INTERNET_CHG_POST_IS_NON_SECURE 12042
#define ERROR_INTERNET_POST_IS_NON_SECURE 12043
#define ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED 12044
#define ERROR_INTERNET_INVALID_CA 12045
#define ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP 12046
#define ERROR_INTERNET_ASYNC_THREAD_FAILED 12047
#define ERROR_INTERNET_REDIRECT_SCHEME_CHANGE 12048
#define ERROR_INTERNET_DIALOG_PENDING 12049
#define ERROR_INTERNET_RETRY_DIALOG 12050
#define ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR 12052
#define ERROR_INTERNET_INSERT_CDROM 12053
#define ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED 12054
#define ERROR_INTERNET_SEC_CERT_ERRORS 12055
#define ERROR_INTERNET_SEC_CERT_NO_REV 12056
#define ERROR_INTERNET_SEC_CERT_REV_FAILED 12057
#define ERROR_HTTP_INVALID_SERVER_RESPONSE 12152
#define ERROR_INTERNET_SECURITY_CHANNEL_ERROR 12157
#define ERROR_INTERNET_UNABLE_TO_CACHE_FILE 12158
#define ERROR_INTERNET_TCPIP_NOT_INSTALLED 12159
#define ERROR_INTERNET_DISCONNECTED 12163
#define ERROR_INTERNET_SERVER_UNREACHABLE 12164
#define ERROR_INTERNET_PROXY_SERVER_UNREACHABLE 12165
#define ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT 12166
#define ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT 12167
#define ERROR_INTERNET_SEC_INVALID_CERT 12169
#define ERROR_INTERNET_SEC_CERT_REVOKED 12170
分享到:
相关推荐
响应码分五种类型,由它们的第一位数字表示:1xx:信息,请求收到,继续处理2xx:成功,行为被成功地接受、理解和采纳3xx:重定向,为了完成请求,必须进一步执行的动作4xx:客户端错误,请求包含语法错误或者请求...
HTTP响应状态码及其对应含义
NULL 博文链接:https://bepatient.iteye.com/blog/744389
HTTP协议响应消息的常用状态码
本篇文章是对HTTP响应状态码速查表进行了详细的分析介绍,需要的朋友参考下
HTTP协议状态码总结 HTTP STATUS
易语言取HTTP状态码源码,取HTTP状态码,取状态,取跳转地址
http状态码
针对HTTP状态码:1xx,2xx,3xx,4xx,5xx的几十个状态码做了详细分析, 以及出现状态码代表了什么意思,个别的详细解释了出现的原因。供大家针对出现的问题思考解决方案;例如:300错误为:针对收到请求,服务器可执行...
HTTP状态码(英语:HTTP Status Code)是用以表示网页服务器超文本传输协议响应状态的3位数字代码。它由 RFC 2616 规范定义的,并得到 RFC 2518、RFC 2817、RFC 2295、RFC 2774 与 RFC 4918 等规范扩展。所有状态码...
详解HTTP状态码产生原理,理解HTTP请求和响应过程(提供图),描述请求头、响应头常用字段信息及理解。
HTTP请求状态码 HTTP请求状态代码表 请求状态代码表 HTTP请求响应代码表
通过HttpClient.jar获取Http响应,获取响应码
想要获取状态码,需要在执行curl_exec后再通过curl_getinfo来获取。例如: 复制代码 代码如下: $ch = curl_init (); curl_setopt($ch, CURLOPT_URL, ‘http://www.google.com.hk’); curl_setopt($ch, CURLOPT_TIME...
HTTP客户程序(例如浏览器),向服务器发送请求的时候必须指明请求类型(一般是GET或者POST)。如有必要,客户程序还可以选择发送其他的请求头。 1. Accept:浏览器可接受的MIME类型。 2. Accept-Charset:浏览器可...
可以通过检查HTTP响应状态码来确保请求成功(如200表示成功)。 解析API响应: 解析API响应,提取出需要的翻译结果。 根据API的返回格式(如JSON或XML),使用相应的方法来解析API响应数据。 处理翻译结果: 提取...
HTTP响应状态码 以便开发人员可以使用命名常量而不是幻数或幻数字符串来引用它们。 以下是一些HTTP请求抽象的示例,这些示例为HTTP请求方法提供了常量: 以下是一些HTTP响应抽象示例,这些示例为HTTP响应状态代码...
HTTP 状态代码的完整列表 1xx(临时响应) 用于表示临时响应并需要请求者执行操作才能继续的状态代码。 代码 说明 100(继续) 请求者应当继续提出请求。服务器返回此代码则意味着,服务器已收到了请求的第一部分,...
Http服务器所有的状态码详解,例如状态码:100 客户端应当继续发送请求。这个临时响应是用来通知客户端它的部分请求已经被服务器接收,且仍未被拒绝。客户端应当继续发送请求的剩余部分,或者如果 请求已经完成,...