Refactor WebDav implementation
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / http / HttpResponseStatus.java
index f0108626e5854ca661e32da3061cd971b7917549..c813a1f6b14ae183d86d50a29c2a0bf0a531b010 100644 (file)
@@ -1,18 +1,22 @@
 package org.argeo.util.http;
 
 /**
- * Standard HTTP response status codes.
+ * Standard HTTP response status codes (including WebDav ones).
  * 
  * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
  */
 public enum HttpResponseStatus {
        // Successful responses (200–299)
        OK(200), //
+       NO_CONTENT(204), //
        MULTI_STATUS(207), // WebDav
        // Client error responses (400–499)
        UNAUTHORIZED(401), //
        FORBIDDEN(403), //
        NOT_FOUND(404), //
+       // Server error responses (500-599)
+       INTERNAL_SERVER_ERROR(500), //
+       NOT_IMPLEMENTED(501), //
        ;
 
        private final int code;