HTTP Errors <httpErrors>
HTTP gt lt errors
2023-09-11 14:14:17 时间
HTTP Errors <httpErrors>
errorMode |
Optional enum attribute. Specifies whether HTTP errors are enabled. The errorMode attribute can be one of the following values; the default is DetailedLocalOnly .
|
existingResponse |
Optional enum attribute. Specifies what happens to an existing response when the HTTP status code is an error, i.e. response codes >= 400. The existingResponse attribute can be one of the following values; the default is Auto .
|
HttpErrorsSection Class
The following table lists the possible values for the ErrorMode
property. The default is 0 (DetailedLocalOnly
).
Value | Keyword | Description |
---|---|---|
0 | DetailedLocalOnly |
A detailed error response is generated only if the request comes from the local computer. If the request comes from an external address, the server generates a custom error response. Note: The value of the ExistingResponse property determines whether a detailed or custom error is generated. |
1 | Custom |
The error that the module or server generates is replaced by a custom page that you specify. This mode is useful in providing friendlier error messages to end users. Note: This setting turns off detailed errors, even for local requests. |
2 | Detailed |
A page with detailed information about the application error is displayed, and custom errors are not shown. This mode is useful for testing and debugging Web sites and applications. Note: It is a security risk to set ErrorMode to Detailed , because even remote clients will receive detailed error information that could lead to unwanted information disclosure. |
The following table lists the possible values for the ExistingResponse
property. The default is 0 (Auto
).
Value | Keyword | Description |
---|---|---|
0 | Auto |
The response depends on the first successful match of the following set of ordered conditions: 1. If the IHttpResponse::SetStatus method was called by using the fTrySkipCustomErrors flag, the existing response is passed through, and no detailed or custom error is shown.2. If the ErrorMode property is set to Custom , the response is replaced.3. If ErrorMode is set to Detailed and there is an existing response, the response is passed through.4. If ErrorMode is set to Detailed and there is no existing response, the response is replaced with a detailed error. |
1 | Replace |
The existing response is always replaced, regardless of how SetStatus was called. |
2 | PassThrough |
The existing response is always used. |
相关文章
- 数据包嗅探工具:HTTP请求/响应分析工具
- 去哪儿网 HTTP 接口自动化测试实践
- HTTP详解
- JavaScript实现http地址自动检测并添加URL链接
- MDN > Web technology for developers > HTTP
- http协议的字段说明
- Node http和express和mysql
- postman进行http接口测试
- 使用$.get()请求controller出现 http://localhost:8080/../[object%20Object] 错误的问题解决
- Http 四种请求访问代码 HttpGet HttpPost HttpPut HttpDelete .
- Nginx配置http强制跳转到https
- dart系列之:浏览器中的舞者,用dart发送HTTP请求
- 新浪实时股票数据接口http://hq.sinajs.cn/list=股票代码
- 浅析Http request的8种类型、post和put的本质区别(是否幂等)、http工作原理(请求/响应模型及步骤)、request请求的url类型
- HTTP(http+抓包Fiddler+协议格式+请求+响应)
- 监控http服务脚本