This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 5784458541 webdav sc up-to-date 5784458541 is described below commit 578445854199f4c0fa2e65161bf2f381ae978fbf 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 55719089d3..c0a5be034d 100644 --- a/java/org/apache/catalina/servlets/WebdavServlet.java +++ b/java/org/apache/catalina/servlets/WebdavServlet.java @@ -3171,25 +3171,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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org