You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2024/11/04 12:40:34 UTC
(tomcat) branch 10.1.x updated: webdav sc up-to-date
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new b3438ab746 webdav sc up-to-date
b3438ab746 is described below
commit b3438ab746255328a9488734a99202f86fbda87a
Author: Chenjp <ch...@msn.com>
AuthorDate: Fri Nov 1 17:02:08 2024 +0800
webdav sc up-to-date
1. Unprocessable Content - 422
2. the 418 status code is reserved in the IANA HTTP Status Code Registry
3. remove unused 419 (SC_INSUFFICIENT_SPACE_ON_RESOURCE ). should replaced by 507 (SC_INSUFFICIENT_STORAGE)
---
java/org/apache/catalina/servlets/WebdavServlet.java | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/java/org/apache/catalina/servlets/WebdavServlet.java b/java/org/apache/catalina/servlets/WebdavServlet.java
index 75adfb0f51..0766e91b84 100644
--- a/java/org/apache/catalina/servlets/WebdavServlet.java
+++ b/java/org/apache/catalina/servlets/WebdavServlet.java
@@ -3172,25 +3172,13 @@ class WebdavStatus {
* Status code (207) indicating that the response requires providing status for multiple independent operations.
*/
public static final int SC_MULTI_STATUS = 207;
- // This one collides with HTTP 1.1
- // "207 Partial Update OK"
/**
- * Status code (418) indicating the entity body submitted with the PATCH method was not understood by the resource.
+ * Status code (422) indicating that the server understands the content type of the request but is unable to process
+ * the contained instructions.
*/
- public static final int SC_UNPROCESSABLE_ENTITY = 418;
- // This one collides with HTTP 1.1
- // "418 Reauthentication Required"
-
-
- /**
- * Status code (419) indicating that the resource does not have sufficient space to record the state of the resource
- * after the execution of this method.
- */
- public static final int SC_INSUFFICIENT_SPACE_ON_RESOURCE = 419;
- // This one collides with HTTP 1.1
- // "419 Proxy Reauthentication Required"
+ public static final int SC_UNPROCESSABLE_CONTENT = HttpServletResponse.SC_UNPROCESSABLE_CONTENT;
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org