-// HttpStatusCode.cs\r
-//\r
-// This code was automatically generated from\r
-// ECMA CLI XML Library Specification.\r
-// Generator: libgen.xsl\r
-// Source file: AllTypes.xml\r
-// URL: http://msdn.microsoft.com/net/ecma/AllTypes.xml\r
-//\r
-// (C) 2001 Ximian, Inc. http://www.ximian.com\r
-\r
-\r
-namespace System.Net {\r
-\r
-\r
- /// <summary>\r
- /// <para>Contains the values of status codes defined for the Hypertext Transfer Protocol (HTTP).</para>\r
- /// </summary>\r
- /// <remarks>\r
- /// <para>This enumeration is used by <see cref="!:System.Net.HTTPWebReponse" />.</para>\r
- /// <block subset="none" type="note">\r
- /// <para>The <see cref="T:System.Net.HttpStatusCode" /> enumeration contains the values of the status codes\r
- /// defined in IETF RFC 2068 - HTTP/1.1. </para>\r
- /// <para>The status of an HTTP request is contained in the <see cref="P:System.Net.HttpWebResponse.StatusCode" qualify="true" /> property. </para>\r
- /// </block>\r
- /// </remarks>\r
- /// <example>\r
- /// <para> The following example compares the status returned by a\r
- /// <see cref="T:System.Net.HttpWebResponse" /> with a <see cref="T:System.Net.HttpStatusCode" /> \r
- /// value to determine the status of the response.</para>\r
- /// <code lang="C#">using System;\r
- /// using System.Net;\r
- /// \r
- /// public class HttpStatusCodeExample {\r
- /// \r
- /// public static void Main() {\r
- /// \r
- /// HttpWebRequest httpReq = (HttpWebRequest)WebRequest.Create("http://www.contoso.com");\r
- /// httpReq.AllowAutoRedirect = false;\r
- /// \r
- /// HttpWebResponse httpRes = (HttpWebResponse)httpReq.GetResponse();\r
- /// \r
- /// if (httpRes.StatusCode==HttpStatusCode.Moved) \r
- /// {\r
- /// // Code for moved resources goes here. \r
- /// }\r
- /// }\r
- /// }\r
- /// </code>\r
- /// </example>\r
- public enum HttpStatusCode {\r
-\r
- /// <summary><para>Equivalent to HTTP status 100. Indicates that the client is allowed to continue with the request.</para><para><block subset="none" type="note">For a detailed description of HTTP status code 100, see\r
- /// Section 10.1.1 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- Continue = 100,\r
-\r
- /// <summary><para>\r
- /// Equivalent to HTTP status 101. Indicates that the server understands\r
- /// and will comply with the client's request to switch the protocol\r
- /// being used by the current connection to the protocols defined by the response's Upgrade header.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 101, see\r
- /// Section 10.1.2 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- SwitchingProtocols = 101,\r
-\r
- /// <summary><para> Equivalent to HTTP status 200. Indicates that the request\r
- /// succeeded. The method used by the request determines the information returned with the\r
- /// response according to the following table.</para><para><list type="termdef"><item><term>GET</term><description>Returns the entity that corresponds to the \r
- /// requested resource.</description></item><item><term>HEAD</term><description>Returns the entity-header fields that \r
- /// corresponds to the requested resource, but does not sent the\r
- /// message-body.</description></item><item><term>POST </term><description>Returns an entity that contains or describes \r
- /// the result of the action.</description></item><item><term>TRACE</term><description>Returns an entity that contains the request \r
- /// message received by the server. </description></item></list></para><para><block subset="none" type="note">For a detailed description of the HTTP status code 200, see\r
- /// Section 10.2.1 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- OK = 200,\r
-\r
- /// <summary><para> \r
- /// Equivalent to HTTP status 201. Indicates\r
- /// that the request has been fulfilled, resulting in the creation of a new resource. The most specific URI for this resource is contained by\r
- /// the Location header field in the response.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 201, see\r
- /// Section 10.2.2 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- Created = 201,\r
-\r
- /// <summary><para> Equivalent\r
- /// to HTTP status 202. Indicates that the request has been\r
- /// accepted but not\r
- /// yet processed.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 202, see\r
- /// Section 10.2.3 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- Accepted = 202,\r
-\r
- /// <summary><para> \r
- /// Equivalent to HTTP status 203. Indicates\r
- /// that a local or a third-party copy\r
- /// rather than the origin server provided the the metainformation returned in the entity-header.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 203, see\r
- /// Section 10.2.4 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- NonAuthoritativeInformation = 203,\r
-\r
- /// <summary><para>Equivalent to HTTP status 204. Indicates that the request has been fulfilled by\r
- /// the server and no entity-body need be returned.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 204, see\r
- /// Section 10.2.5 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- NoContent = 204,\r
-\r
- /// <summary><para> Equivalent to HTTP status 205. Indicates that\r
- /// the server has fulfilled the request and the document view that yielded the request should be reset\r
- /// by the user.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 205, see\r
- /// Section 10.2.6 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- ResetContent = 205,\r
-\r
- /// <summary><para>Equivalent to HTTP status 206. Indicates that the server has\r
- /// fulfilled a partial GET request for the resource. The request is required to have\r
- /// included a Range header field that indicates the desired range.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 206, see\r
- /// Section 10.2.7 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- PartialContent = 206,\r
-\r
- /// <summary><para> Equivalent\r
- /// to HTTP status 300. Indicates that multiple representations, each with a specific location,\r
- /// correspond to the requested resource. Agent-driven negotiation information is provided\r
- /// so that the request may be redirected by the user (or user agent) to the location of the preferred representation.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />,\r
- /// <see cref="F:System.Net.HttpStatusCode.MultipleChoices" /> will cause an exception to be thrown.</para><block subset="none" type="note"><para>The default action is to treat this status as a redirect and follow the\r
- /// contents of the Location header associated with this response.</para><para><see cref="F:System.Net.HttpStatusCode.MultipleChoices" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.Ambiguous" />.</para><para>For a detailed description of the HTTP status code 300, see Section 10.3.1 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- MultipleChoices = 300,\r
-\r
- /// <summary><para>Equivalent to HTTP status 300. Indicates that multiple \r
- /// representations, each with a specific location, correspond to the requested\r
- /// resource. Agent-driven negotiation information is provided so that the\r
- /// request may be redirected by the user (or user agent) to the location of the\r
- /// preferred representation.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />,\r
- /// <see cref="F:System.Net.HttpStatusCode.Ambiguous" /> will cause an exception to be \r
- /// thrown.</para><block subset="none" type="note"><para>The default action is to treat this status as a redirect\r
- /// and follow the contents of the Location header associated with this\r
- /// response.</para><para><see cref="F:System.Net.HttpStatusCode.Ambiguous" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.MultipleChoices" />.</para><para>For a detailed description of the HTTP status code 300, see Section 10.3.1 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- Ambiguous = 300,\r
-\r
- /// <summary><para>Equivalent to HTTP status 301. Indicates that a new, permanent URI has been assigned to the requested resource. All future references should use one of the returned URIs.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />, <see cref="F:System.Net.HttpStatusCode.MovedPermanently" /> will cause an exception to be\r
- /// thrown.</para><block subset="none" type="note"><para>The default action when this status is received is to follow the Location\r
- /// header associated with the response.</para><para><see cref="F:System.Net.HttpStatusCode.MovedPermanently" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.Moved" />.</para><para>For a detailed description of the HTTP status code 301, see Section 10.3.2 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- MovedPermanently = 301,\r
-\r
- /// <summary><para>Equivalent to HTTP status 301. Indicates that a new, permanent URI has been \r
- /// assigned to the requested resource. All future references should use one of the\r
- /// returned URIs.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />,\r
- /// <see cref="F:System.Net.HttpStatusCode.Moved" /> will cause an exception to be \r
- /// thrown.</para><block subset="none" type="note"><para>The default action when this status is received is to follow the Location\r
- /// header associated with the response. When the original request method was POST,\r
- /// the redirected request will use the GET method.</para><para><see cref="F:System.Net.HttpStatusCode.Moved" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.MovedPermanently" />.</para><para>For a detailed description of the HTTP status code 301, see Section 10.3.2 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- Moved = 301,\r
-\r
- /// <summary><para> Equivalent to HTTP status 302. Indicates\r
- /// that the requested resource is temporarily located on a different URI.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />,\r
- /// <see cref="F:System.Net.HttpStatusCode.Found" /> will cause an exception to be\r
- /// thrown.</para><block subset="none" type="note"><para><see cref="F:System.Net.HttpStatusCode.Found" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.Redirect" />.</para><para> The default action when this status is received is to\r
- /// follow the Location header associated with the response. When the original\r
- /// request method was POST, the redirected request will use the GET method.</para><para>For a detailed description of the HTTP status code 302, see Section 10.3.3 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- Found = 302,\r
-\r
- /// <summary><para>Equivalent to HTTP status 302. Indicates that the requested resource is \r
- /// temporarily located on a different URI.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />,\r
- /// <see cref="F:System.Net.HttpStatusCode.Redirect" /> will cause an exception to be \r
- /// thrown.</para><block subset="none" type="note"><para>The default action when this status is received is to follow the Location\r
- /// header associated with the response. When the original request method was POST,\r
- /// the redirected request will use the GET method.</para><para><see cref="F:System.Net.HttpStatusCode.Redirect" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.Found" />.</para><para>For a detailed description of the HTTP status code 302, see Section 10.3.3 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- Redirect = 302,\r
-\r
- /// <summary><para>Equivalent to HTTP status 303. Automatically redirects the client to the URI\r
- /// specified in the Location header as the result of a POST.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />,\r
- /// <see cref="F:System.Net.HttpStatusCode.SeeOther" /> will cause an exception to be \r
- /// thrown.</para><block subset="none" type="note"><para>The request to the resource specified by the Location header will be made\r
- /// with a GET.</para><para><see cref="F:System.Net.HttpStatusCode.SeeOther" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.RedirectMethod" />.</para><para>For a detailed description of the HTTP status code 303, see Section 10.3.4 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- SeeOther = 303,\r
-\r
- /// <summary><para>Equivalent to HTTP status 303.\r
- /// Automatically\r
- /// redirects the client to the URI specified in the Location header as the result\r
- /// of a POST.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />,\r
- /// <see cref="F:System.Net.HttpStatusCode.RedirectMethod" /> will cause an exception to be thrown.</para><block subset="none" type="note"><para>The request to the resource specified by the Location header will be made\r
- /// with a GET.</para><para><see cref="F:System.Net.HttpStatusCode.RedirectMethod" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.SeeOther" />.</para><para>For a detailed description of the HTTP status code 303, see Section 10.3.4 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- RedirectMethod = 303,\r
-\r
- /// <summary><para>Equivalent to HTTP status 304. Indicates that the\r
- /// client has preformed a conditional GET request and access is allowed, but the document has not been modified.</para><para><block subset="none" type="note">For a detailed description ofthe HTTP status code 304, see Section 10.3.5\r
- /// of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- NotModified = 304,\r
-\r
- /// <summary><para>Equivalent to HTTP status 305. Indicates that the requested\r
- /// resource is required to be accessed through the proxy given by the Location header field.</para><para><block subset="none" type="note">For a detailed description of the HTTP status\r
- /// code 305, see Section 10.3.6 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- UseProxy = 305,\r
-\r
- /// <summary><para> Equivalent to HTTP status 306.</para><block subset="none" type="note"><para>This status code is not used in HTTP/1.1.</para><para>For a detailed description of the HTTP status code 306, see Section 10.3.7 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- Unused = 306,\r
-\r
- /// <summary><para>Equivalent to HTTP status 307. Indicates that the requested resource is temporarily\r
- /// located under a different URI.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />,\r
- /// <see cref="F:System.Net.HttpStatusCode.TemporaryRedirect" /> will cause an exception to be \r
- /// thrown.</para><block subset="none" type="note"><para>The default action when this status is received is to follow the Location\r
- /// header associated with the response. When the original request method was POST,\r
- /// the redirected request will also use the POST method.</para><para><see cref="F:System.Net.HttpStatusCode.TemporaryRedirect" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.RedirectKeepVerb" />.</para><para>For a detailed description of the HTTP status code 307, see Section 10.3.8 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- TemporaryRedirect = 307,\r
-\r
- /// <summary><para>Equivalent to HTTP status 307. Indicates that the requested resource is \r
- /// temporarily located under a different URI.</para><para>If the <see cref="P:System.Net.HttpWebRequest.AllowAutoRedirect" qualify="true" /> property is <see langword="false" />,\r
- /// <see cref="F:System.Net.HttpStatusCode.RedirectKeepVerb" /> will cause an exception to be \r
- /// thrown.</para><block subset="none" type="note"><para>The default action when this status is received is to follow the Location\r
- /// header associated with the response. When the original request method was POST,\r
- /// the redirected request will also use the POST method.</para><para><see cref="F:System.Net.HttpStatusCode.RedirectKeepVerb" /> is a synonym for <see cref="F:System.Net.HttpStatusCode.TemporaryRedirect" />.</para><para>For a detailed description of the HTTP status code 307, see Section 10.3.8 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- RedirectKeepVerb = 307,\r
-\r
- /// <summary><para> Equivalent to HTTP status 400.\r
- /// Indicates that improper syntax prevented the server from understanding the request .</para><block subset="none" type="note"><para>For a detailed description of the HTTP status code 400, see Section 10.4.1 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- BadRequest = 400,\r
-\r
- /// <summary><para> Equivalent to HTTP status 401. Indicates that user authentication is required\r
- /// for the request.</para><block subset="none" type="note"><para>The WWW-Authenticate header contains the details of how to perform the\r
- /// authentication.</para><para>For a detailed description of the HTTP status code 401, see Section 10.4.2 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- Unauthorized = 401,\r
-\r
- /// <summary><para>Equivalent to HTTP status 402.\r
- /// <see cref="F:System.Net.HttpStatusCode.PaymentRequired" />is reserved for future use.</para></summary>\r
- PaymentRequired = 402,\r
-\r
- /// <summary><para> Equivalent to HTTP status 403. Indicates that the server understood but refuses to fulfill the request.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 403, see\r
- /// Section 10.4.4 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- Forbidden = 403,\r
-\r
- /// <summary><para> \r
- /// Equivalent to HTTP status 404. Indicates that the server has not found a resource that matches\r
- /// the requested URI.</para><para><block subset="none" type="note">For adetailed descriptionof the HTTP status code 404, see\r
- /// Section 10.4.5 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- NotFound = 404,\r
-\r
- /// <summary><para> Equivalent to HTTP status 405. Indicates that the method specified in the Request-Line\r
- /// is not allowed for the requested resource.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 405, see\r
- /// Section 10.4.6 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- MethodNotAllowed = 405,\r
-\r
- /// <summary><para>Equivalent to HTTP status 406. Indicates that the only response entities that can be generated by the requested resource have content\r
- /// characteristics that are not acceptable according to the accept headers sent in the request.</para><para><block subset="none" type="note">For adetailed descriptionof the HTTP status code 406, see\r
- /// Section 10.4.7 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- NotAcceptable = 406,\r
-\r
- /// <summary><para> Equivalent to HTTP status 407.\r
- /// Indicates that the client must authenticate itself with the\r
- /// proxy before proceeding.</para><block subset="none" type="note"><para>The Proxy-authenticate header contains the details of how to perform the\r
- /// authentication.</para><para>For a detailed description of the HTTP status code 407, see Section 10.4.8 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- ProxyAuthenticationRequired = 407,\r
-\r
- /// <summary><para> Equivalent to HTTP status 408. Indicates that the\r
- /// server timed out before the client produced a request.</para><para><block subset="none" type="note">For adetailed descriptionof the HTTP status code 408, see\r
- /// Section 10.4.9 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- RequestTimeout = 408,\r
-\r
- /// <summary><para> Equivalent to HTTP status 409. Indicates that a conflict with the current resource\r
- /// state prevented the completion of the request.</para><para><block subset="none" type="note">For adetailed descriptionof the HTTP status code 409, see\r
- /// Section 10.4.10 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- Conflict = 409,\r
-\r
- /// <summary><para>Equivalent to HTTP status 410. Indicates both that the\r
- /// requested resource is no longer available\r
- /// on the server and no forwarding address is known.</para><para><block subset="none" type="note">For adetailed descriptionof the HTTP status code 410, see\r
- /// Section 10.4.11 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- Gone = 410,\r
-\r
- /// <summary><para>Equivalent to HTTP status 411. Indicates that the server refuses to accept the request because its Content-length header is undefined.</para><para><block subset="none" type="note">For adetailed descriptionof the HTTP status code 411, see\r
- /// Section 10.4.12 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- LengthRequired = 411,\r
-\r
- /// <summary><para> Equivalent to HTTP status 412. Indicates\r
- /// that a precondition given in one or more of the request-header fields\r
- /// was tested on the server but evaluated to\r
- /// false.</para><block subset="none" type="note"><para>Conditions are set with conditional request headers such as If-Match,\r
- /// If-None-Match, or If-Unmodified-Since.</para><para>For a detailed description of the HTTP status code 412, see Section 10.4.13 of IETF RFC 2068 -\r
- /// HTTP/1.1.</para></block></summary>\r
- PreconditionFailed = 412,\r
-\r
- /// <summary><para> Equivalent to HTTP status 413. Indicates that the\r
- /// request entity is larger that the server is willing or able to process, so the server is not\r
- /// processing the request.</para><para><block subset="none" type="note">For a detailed description of the HTTP\r
- /// status code 413, see Section 10.4.14 of IETF RFC 2068 -\r
- /// HTTP/1.1.</block></para></summary>\r
- RequestEntityTooLarge = 413,\r
-\r
- /// <summary><para> \r
- /// Equivalent to HTTP status 414. Indicates\r
- /// that the Request-URI is longer than the server will interpret, so the server is not servicing the\r
- /// request.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 414, see\r
- /// Section 10.4.15 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- RequestUriTooLong = 414,\r
-\r
- /// <summary><para> Equivalent to HTTP status\r
- /// 415. Indicates that the format of the entity of the request is not supported by the requested resource, so the server is not servicing the request.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 415, see\r
- /// Section 10.4.16 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- UnsupportedMediaType = 415,\r
-\r
- /// <summary><para> Equivalent to HTTP status\r
- /// 416. Indicates that none of the values specified by the Range request-header field\r
- /// overlap the current extent of the\r
- /// selected resource, and no If-Range request-header field was contained by the request.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 416, see\r
- /// Section 10.4.17 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- RequestedRangeNotSatisfiable = 416,\r
-\r
- /// <summary><para> \r
- /// Equivalent to HTTP status 417. Indicates that the Expect request-header field condition could\r
- /// not be met by the server, or the server is a proxy and has unambiguous evidence\r
- /// that the next-hop server cannot meet the condition.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 417, see\r
- /// Section 10.4.18 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- ExpectationFailed = 417,\r
-\r
- /// <summary><para>Equivalent to HTTP status 500. Indicates that the request could not be fulfilled by the server due to an unexpected condition.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 500, see\r
- /// Section 10.5.1 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- InternalServerError = 500,\r
-\r
- /// <summary><para> Equivalent to HTTP status 501. Indicates that\r
- /// the functionality required to fulfill the request is not supported by the server.\r
- /// This is appropriate, for example, if the server does not recognize the request method and cannot support it for any resource.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 501, see\r
- /// Section 10.5.2 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- NotImplemented = 501,\r
-\r
- /// <summary><para> Equivalent to HTTP status 502. Indicates that the\r
- /// server, acting as a gateway or proxy, received an invalid response from the upstream\r
- /// server that was accessed while attempting to fulfill the request.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 502, see\r
- /// Section 10.5.3 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- BadGateway = 502,\r
-\r
- /// <summary><para> Equivalent to HTTP status 503. Indicates that a temporary overloading or maintenance of\r
- /// the server is preventing it from handling the request.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 503, see\r
- /// Section 10.5.4 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- ServiceUnavailable = 503,\r
-\r
- /// <summary><para> \r
- /// Equivalent to HTTP status 504. Indicates that the server, acting as a gateway or proxy, timed out while waiting for a response from an\r
- /// upstream server accessed in an attempt to fulfill the request.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 504, see\r
- /// Section 10.5.5 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- GatewayTimeout = 504,\r
-\r
- /// <summary><para> Equivalent to HTTP\r
- /// status 505. Indicates that the HTTP protocol version used by the request is not\r
- /// supported by the server.</para><para><block subset="none" type="note">For a detailed description of the HTTP status code 505, see\r
- /// Section 10.5.6 of IETF RFC 2068 - HTTP/1.1.</block></para></summary>\r
- HttpVersionNotSupported = 505,\r
- } // HttpStatusCode\r
-\r
-} // System.Net\r
+// HttpStatusCode.cs
+//
+// This code was automatically generated from
+// ECMA CLI XML Library Specification.
+// Generator: libgen.xsl [1.0; (C) Sergey Chaban (serge@wildwestsoftware.com)]
+// Created: Wed, 5 Sep 2001 06:32:05 UTC
+// Source file: AllTypes.xml
+// URL: http://msdn.microsoft.com/net/ecma/AllTypes.xml
+//
+// (C) 2001 Ximian, Inc. http://www.ximian.com
+
+
+namespace System.Net {
+
+
+ /// <summary>
+ /// </summary>
+ public enum HttpStatusCode {
+
+ /// <summary>
+ /// </summary>
+ Continue = 100,
+
+ /// <summary>
+ /// </summary>
+ SwitchingProtocols = 101,
+
+ /// <summary>
+ /// </summary>
+ OK = 200,
+
+ /// <summary>
+ /// </summary>
+ Created = 201,
+
+ /// <summary>
+ /// </summary>
+ Accepted = 202,
+
+ /// <summary>
+ /// </summary>
+ NonAuthoritativeInformation = 203,
+
+ /// <summary>
+ /// </summary>
+ NoContent = 204,
+
+ /// <summary>
+ /// </summary>
+ ResetContent = 205,
+
+ /// <summary>
+ /// </summary>
+ PartialContent = 206,
+
+ /// <summary>
+ /// </summary>
+ MultipleChoices = 300,
+
+ /// <summary>
+ /// </summary>
+ Ambiguous = 300,
+
+ /// <summary>
+ /// </summary>
+ MovedPermanently = 301,
+
+ /// <summary>
+ /// </summary>
+ Moved = 301,
+
+ /// <summary>
+ /// </summary>
+ Found = 302,
+
+ /// <summary>
+ /// </summary>
+ Redirect = 302,
+
+ /// <summary>
+ /// </summary>
+ SeeOther = 303,
+
+ /// <summary>
+ /// </summary>
+ RedirectMethod = 303,
+
+ /// <summary>
+ /// </summary>
+ NotModified = 304,
+
+ /// <summary>
+ /// </summary>
+ UseProxy = 305,
+
+ /// <summary>
+ /// </summary>
+ Unused = 306,
+
+ /// <summary>
+ /// </summary>
+ TemporaryRedirect = 307,
+
+ /// <summary>
+ /// </summary>
+ RedirectKeepVerb = 307,
+
+ /// <summary>
+ /// </summary>
+ BadRequest = 400,
+
+ /// <summary>
+ /// </summary>
+ Unauthorized = 401,
+
+ /// <summary>
+ /// </summary>
+ PaymentRequired = 402,
+
+ /// <summary>
+ /// </summary>
+ Forbidden = 403,
+
+ /// <summary>
+ /// </summary>
+ NotFound = 404,
+
+ /// <summary>
+ /// </summary>
+ MethodNotAllowed = 405,
+
+ /// <summary>
+ /// </summary>
+ NotAcceptable = 406,
+
+ /// <summary>
+ /// </summary>
+ ProxyAuthenticationRequired = 407,
+
+ /// <summary>
+ /// </summary>
+ RequestTimeout = 408,
+
+ /// <summary>
+ /// </summary>
+ Conflict = 409,
+
+ /// <summary>
+ /// </summary>
+ Gone = 410,
+
+ /// <summary>
+ /// </summary>
+ LengthRequired = 411,
+
+ /// <summary>
+ /// </summary>
+ PreconditionFailed = 412,
+
+ /// <summary>
+ /// </summary>
+ RequestEntityTooLarge = 413,
+
+ /// <summary>
+ /// </summary>
+ RequestUriTooLong = 414,
+
+ /// <summary>
+ /// </summary>
+ UnsupportedMediaType = 415,
+
+ /// <summary>
+ /// </summary>
+ RequestedRangeNotSatisfiable = 416,
+
+ /// <summary>
+ /// </summary>
+ ExpectationFailed = 417,
+
+ /// <summary>
+ /// </summary>
+ InternalServerError = 500,
+
+ /// <summary>
+ /// </summary>
+ NotImplemented = 501,
+
+ /// <summary>
+ /// </summary>
+ BadGateway = 502,
+
+ /// <summary>
+ /// </summary>
+ ServiceUnavailable = 503,
+
+ /// <summary>
+ /// </summary>
+ GatewayTimeout = 504,
+
+ /// <summary>
+ /// </summary>
+ HttpVersionNotSupported = 505,
+ } // HttpStatusCode
+
+} // System.Net