WebTestResponseCode Enumeration

Enumerates the HTTP response codes that are defined in RFC 2616 for HTTP 1.1.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
<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

Members

Member name Description
None HTTP Response code 0.
Continue HTTP Response code 100.
SwitchingProtocols HTTP Response code 101.
Ok HTTP Response code 200.
Created HTTP Response code 201.
Accepted HTTP Response code 202.
NonAuthoritativeInformation HTTP Response code 203.
NoContent HTTP Response code 204.
ResetContent HTTP Response code 205.
PartialContent HTTP Response code 206.
MultipleChoices HTTP Response code 300.
Moved HTTP Response code 301.
Redirect HTTP Response code 302.
RedirectMethod HTTP Response code 303.
NotModified HTTP Response code 304.
UseProxy HTTP Response code 305.
Unused HTTP Response code 306.
TemporaryRedirect HTTP Response code 307.
BadRequest HTTP Response code 400.
Unauthorized HTTP Response code 401.
PaymentRequired HTTP Response code 402.
Forbidden HTTP Response code 403.
NotFound HTTP Response code 404.
MethodNotAllowed HTTP Response code 405.
NotAcceptable HTTP Response code 406.
ProxyAuthenticationRequired HTTP Response code 407.
RequestTimeout HTTP Response code 408.
Conflict HTTP Response code 409.
Gone HTTP Response code 410.
LengthRequired HTTP Response code 411.
PreconditionFailed HTTP Response code 412.
RequestEntityTooLarge HTTP Response code 413.
RequestUriTooLong HTTP Response code 414.
UnsupportedMediaType HTTP Response code 415.
RequestedRangeNotSatisfied HTTP Response code 416.
ExpectationFailed HTTP Response code 417.
InternalServerError HTTP Response code 500.
NotImplemented HTTP Response code 501.
BadGateway HTTP Response code 502.
ServiceUnavailable HTTP Response code 503.
GatewayTimeout HTTP Response code 504.
HttpVersionNotSupported HTTP Response code 505.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace