Share via


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

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace