HttpRequestError 枚举  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义表示 或 HttpIOException的原因HttpRequestException的错误类别。
public enum class HttpRequestError
	public enum HttpRequestError
	type HttpRequestError = 
	Public Enum HttpRequestError
		- 继承
 
字段
| 名称 | 值 | 说明 | 
|---|---|---|
| ConfigurationLimitExceeded | 11 | 响应超出了预配置的限制,例如 MaxResponseContentBufferSize 或 MaxResponseHeadersLength。  | 
			
| ConnectionError | 2 | 连接到远程终结点时发生传输级别故障。  | 
			
| ExtendedConnectNotSupported | 5 | 对等方不支持基于 HTTP/2 的 WebSocket 扩展 CONNECT。  | 
			
| HttpProtocolError | 4 | 发生 HTTP/2 或 HTTP/3 协议错误。  | 
			
| InvalidResponse | 9 | 已收到无效或格式不正确的响应。  | 
			
| NameResolutionError | 1 | DNS 名称解析失败。  | 
			
| ProxyTunnelError | 8 | 与代理隧道建立连接时出错。  | 
			
| ResponseEnded | 10 | 响应过早结束。  | 
			
| SecureConnectionError | 3 | TLS 握手期间出错。  | 
			
| Unknown | 0 | 发生一般错误或未知错误。  | 
			
| UserAuthenticationError | 7 | 身份验证失败。  | 
			
| VersionNegotiationError | 6 | 无法协商请求的 HTTP 版本。  |