共用方式為


WebTestResponseCode 列舉型別

列舉 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。

請參閱

參考

Microsoft.VisualStudio.TestTools.WebTesting 命名空間