Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.5 KiB

  1. /*
  2. * S T A T C O D E . H
  3. *
  4. * DAV response status codes
  5. *
  6. * Copyright 1986-1997 Microsoft Corporation, All Rights Reserved
  7. */
  8. #ifndef _STATCODE_H_
  9. #define _STATCODE_H_
  10. // HTTP/1.1 Response Status Codes --------------------------------------------
  11. //
  12. #define HSC_CONTINUE 100
  13. #define HSC_SWITCH_PROTOCOL 101
  14. #define HSC_PROCESSING 102
  15. #define HSC_OK 200
  16. #define HSC_CREATED 201
  17. #define HSC_ACCEPTED 202
  18. #define HSC_NON_AUTHORITATIVE_INFO 203
  19. #define HSC_NO_CONTENT 204
  20. #define HSC_RESET_CONTENT 205
  21. #define HSC_PARTIAL_CONTENT 206
  22. #define HSC_MULTI_STATUS 207
  23. #define HSC_SUBSCRIBED 241
  24. #define HSC_SUBSCRIPTION_FAILED 242
  25. #define HSC_NOTIFICATION_FAILED 243
  26. #define HSC_NOTIFICATION_ACKNOWLEDGED 244
  27. #define HSC_EVENTS_FOLLOW 245
  28. #define HSC_NO_EVENTS_PENDING 246
  29. #define HSC_MULTIPLE_CHOICE 300
  30. #define HSC_MOVED_PERMANENTLY 301
  31. #define HSC_MOVED_TEMPORARILY 302
  32. #define HSC_SEE_OTHER 303
  33. #define HSC_NOT_MODIFIED 304
  34. #define HSC_USE_PROXY 305
  35. #define HSC_BAD_REQUEST 400
  36. #define HSC_UNAUTHORIZED 401
  37. #define HSC_PAYMENT_REQUIRED 402
  38. #define HSC_FORBIDDEN 403
  39. #define HSC_NOT_FOUND 404
  40. #define HSC_METHOD_NOT_ALLOWED 405
  41. #define HSC_NOT_ACCEPTABLE 406
  42. #define HSC_PROXY_AUTH_REQUIRED 407
  43. #define HSC_REQUEST_TIMEOUT 408
  44. #define HSC_CONFLICT 409
  45. #define HSC_GONE 410
  46. #define HSC_LENGTH_REQUIRED 411
  47. #define HSC_PRECONDITION_FAILED 412
  48. #define HSC_REQUEST_ENTITY_TOO_LARGE 413
  49. #define HSC_REQUEST_URI_TOO_LARGE 414
  50. #define HSC_UNSUPPORTED_MEDIA_TYPE 415
  51. #define HSC_RANGE_NOT_SATISFIABLE 416
  52. #define HSC_EXPECTATION_FAILED 417
  53. #define HSC_UNPROCESSABLE 422
  54. #define HSC_LOCKED 423
  55. #define HSC_METHOD_FAILURE 424
  56. #define HSC_INCOMPLETE_DATA 437
  57. #define HSC_INTERNAL_SERVER_ERROR 500
  58. #define HSC_NOT_IMPLEMENTED 501
  59. #define HSC_BAD_GATEWAY 502
  60. #define HSC_SERVICE_UNAVAILABLE 503
  61. #define HSC_GATEWAY_TIMEOUT 504
  62. #define HSC_VERSION_NOT_SUPPORTED 505
  63. #define HSC_NO_PARTIAL_UPDATE 506
  64. #define HSC_INSUFFICIENT_SPACE 507
  65. #define HSC_SERVER_TOO_BUSY 513
  66. // Util macros ---------------------------------------------------------------
  67. //
  68. #define FSuccessHSC(_h) ((_h) < 300)
  69. #define FFailedHSC(_h) ((_h) >= 300)
  70. #define FRedirectHSC(_h) (((_h) == 301) || \
  71. ((_h) == 302) || \
  72. ((_h) == 303) || \
  73. ((_h) == 305))
  74. #endif // _STATCODE_H_