zoukankan      html  css  js  c++  java
  • 转 微软Http错误Code解析、HTTP 响应状态码

    转自https://www.cnblogs.com/hmmcsdd/archive/2007/03/26/MSHttpErrorCode.html

    HTTP 响应状态码

    #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 错误

    #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
  • 相关阅读:
    JavaScript 为字符串添加样式 【每日一段代码80】
    JavaScript replace()方法 【每日一段代码83】
    JavaScript for in 遍历数组 【每日一段代码89】
    JavaScript 创建用于对象的模板【每日一段代码78】
    html5 css3 新元素简单页面布局
    JavaScript Array() 数组 【每日一段代码88】
    JavaScript toUTCString() 方法 【每日一段代码86】
    位运算
    POJ 3259 Wormholes
    POJ 3169 Layout
  • 原文地址:https://www.cnblogs.com/XiHua/p/14734780.html
Copyright © 2011-2022 走看看