枚举在适用于 HTTP 1.1 的 RFC 2616 中定义的 HTTP 响应代码。
命名空间: Microsoft.VisualStudio.TestTools.WebTesting
程序集: Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
语法
声明
<TypeConverterAttribute(GetType(WebTestResponseCodeConverter))> _
Public Enumeration WebTestResponseCode
[TypeConverterAttribute(typeof(WebTestResponseCodeConverter))]
public enum WebTestResponseCode
[TypeConverterAttribute(typeof(WebTestResponseCodeConverter))]
public enum class WebTestResponseCode
[<TypeConverterAttribute(typeof(WebTestResponseCodeConverter))>]
type WebTestResponseCode
public enum WebTestResponseCode
成员
| 成员名称 | 说明 | |
|---|---|---|
| None | HTTP 响应代码 0。 | |
| Continue | HTTP 响应代码 100。 | |
| SwitchingProtocols | HTTP 响应代码 101。 | |
| Ok | HTTP 响应代码 200。 | |
| Created | HTTP 响应代码 201。 | |
| Accepted | HTTP 响应代码 202。 | |
| NonAuthoritativeInformation | HTTP 响应代码 203。 | |
| NoContent | HTTP 响应代码 204。 | |
| ResetContent | HTTP 响应代码 205。 | |
| PartialContent | HTTP 响应代码 206。 | |
| MultipleChoices | HTTP 响应代码 300。 | |
| Moved | HTTP 响应代码 301。 | |
| Redirect | HTTP 响应代码 302。 | |
| RedirectMethod | HTTP 响应代码 303。 | |
| NotModified | HTTP 响应代码 304。 | |
| UseProxy | HTTP 响应代码 305。 | |
| Unused | HTTP 响应代码 306。 | |
| TemporaryRedirect | HTTP 响应代码 307。 | |
| BadRequest | HTTP 响应代码 400。 | |
| Unauthorized | HTTP 响应代码 401。 | |
| PaymentRequired | HTTP 响应代码 402。 | |
| Forbidden | HTTP 响应代码 403。 | |
| NotFound | HTTP 响应代码 404。 | |
| MethodNotAllowed | HTTP 响应代码 405。 | |
| NotAcceptable | HTTP 响应代码 406。 | |
| ProxyAuthenticationRequired | HTTP 响应代码 407。 | |
| RequestTimeout | HTTP 响应代码 408。 | |
| Conflict | HTTP 响应代码 409。 | |
| Gone | HTTP 响应代码 410。 | |
| LengthRequired | HTTP 响应代码 411。 | |
| PreconditionFailed | HTTP 响应代码 412。 | |
| RequestEntityTooLarge | HTTP 响应代码 413。 | |
| RequestUriTooLong | HTTP 响应代码 414。 | |
| UnsupportedMediaType | HTTP 响应代码 415。 | |
| RequestedRangeNotSatisfied | HTTP 响应代码 416。 | |
| ExpectationFailed | HTTP 响应代码 417。 | |
| InternalServerError | HTTP 响应代码 500。 | |
| NotImplemented | HTTP 响应代码 501。 | |
| BadGateway | HTTP 响应代码 502。 | |
| ServiceUnavailable | HTTP 响应代码 503。 | |
| GatewayTimeout | HTTP 响应代码 504。 | |
| HttpVersionNotSupported | HTTP 响应代码 505。 |