WebDavStatusCode.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. namespace WebDAVSharp.Server.Utilities
  2. {
  3. /// <summary>
  4. /// Contains the values of status codes defined for Http (WebDav).
  5. /// </summary>
  6. internal enum WebDavStatusCode
  7. {
  8. /// <summary>
  9. /// Equivalent to Http status 207 (WebDav).
  10. /// WebDAVSharp.Server.Utilities.WebDavStatusCode.MultiStatus provides status for multiple independent operations.
  11. /// </summary>
  12. /// <remarks>
  13. /// For more information, see <see href="http://www.webdav.org/specs/rfc2518.html#STATUS_207" />.
  14. /// </remarks>
  15. MultiStatus = 207,
  16. /// <summary>
  17. /// Equivalent to Http status 422 (WebDav).
  18. /// WebDAVSharp.Server.Utilities.WebDavStatusCode.UnprocessableEntity means the server understands the content type of
  19. /// the request entity (hence a 415 (<see cref="System.Net.HttpStatusCode.UnsupportedMediaType" />) status code is
  20. /// inappropriate), and the syntax of the request entity is correct (thus a 400 (
  21. /// <see cref="System.Net.HttpStatusCode.BadRequest" />) status code is inappropriate) but was unable to process the
  22. /// contained instructions.
  23. /// </summary>
  24. /// <remarks>
  25. /// For more information, see <see href="http://www.webdav.org/specs/rfc2518.html#STATUS_422" />.
  26. /// </remarks>
  27. UnprocessableEntity = 422,
  28. /// <summary>
  29. /// Equivalent to Http status 423 (WebDav).
  30. /// WebDAVSharp.Server.Utilities.WebDavStatusCode.Locked means the source or destination resource of a method is
  31. /// locked.
  32. /// </summary>
  33. /// <remarks>
  34. /// For more information, see <see href="http://www.webdav.org/specs/rfc2518.html#STATUS_423" />.
  35. /// </remarks>
  36. Locked = 423,
  37. /// <summary>
  38. /// Equivalent to Http status 424 (WebDav).
  39. /// WebDAVSharp.Server.Utilities.WebDavStatusCode.FailedDependency means that the method could not be performed on the
  40. /// resource because the requested action depended on another action and that action failed.
  41. /// </summary>
  42. /// <remarks>
  43. /// For more information, see <see href="http://www.webdav.org/specs/rfc2518.html#STATUS_424" />.
  44. /// </remarks>
  45. FailedDependency = 424,
  46. /// <summary>
  47. /// Equivalent to Http status 507 (WebDav).
  48. /// WebDAVSharp.Server.Utilities.WebDavStatusCode.InsufficientStorage means the method could not be performed on the
  49. /// resource because the server is unable to store the representation needed to successfully complete the request.
  50. /// </summary>
  51. /// <remarks>
  52. /// For more information, see <see href="http://www.webdav.org/specs/rfc2518.html#STATUS_507" />.
  53. /// </remarks>
  54. InsufficientStorage = 507
  55. }
  56. }