HttpStatusCode.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. //Copyright 2010 Microsoft Corporation
  2. //
  3. //Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
  4. //You may obtain a copy of the License at
  5. //
  6. //http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. //Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
  9. //"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. //See the License for the specific language governing permissions and limitations under the License.
  11. namespace System.Data.Services.Http
  12. {
  13. internal enum HttpStatusCodeRange : int
  14. {
  15. MaxValue = 599,
  16. MinValue = 100
  17. }
  18. internal enum HttpStatusCode
  19. {
  20. Accepted = 202,
  21. Ambiguous = 300,
  22. BadGateway = 502,
  23. BadRequest = 400,
  24. Conflict = 409,
  25. Continue = 100,
  26. Created = 201,
  27. ExpectationFailed = 417,
  28. Forbidden = 403,
  29. Found = 302,
  30. GatewayTimeout = 504,
  31. Gone = 410,
  32. HttpVersionNotSupported = 505,
  33. InternalServerError = 500,
  34. LengthRequired = 411,
  35. MethodNotAllowed = 405,
  36. Moved = 301,
  37. MovedPermanently = 301,
  38. MultipleChoices = 300,
  39. NoContent = 204,
  40. NonAuthoritativeInformation = 203,
  41. NotAcceptable = 406,
  42. NotFound = 404,
  43. NotImplemented = 501,
  44. NotModified = 304,
  45. OK = 200,
  46. PartialContent = 206,
  47. PaymentRequired = 402,
  48. PreconditionFailed = 412,
  49. ProxyAuthenticationRequired = 407,
  50. Redirect = 302,
  51. RedirectKeepVerb = 307,
  52. RedirectMethod = 303,
  53. RequestedRangeNotSatisfiable = 416,
  54. RequestEntityTooLarge = 413,
  55. RequestTimeout = 408,
  56. RequestUriTooLong = 414,
  57. ResetContent = 205,
  58. SeeOther = 303,
  59. ServiceUnavailable = 503,
  60. SwitchingProtocols = 101,
  61. TemporaryRedirect = 307,
  62. Unauthorized = 401,
  63. UnsupportedMediaType = 415,
  64. Unused = 306,
  65. UseProxy = 305
  66. }
  67. }