From 698d004260a950d54bd92ba3dfe3feb05039a0b6 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Mon, 14 May 2012 14:34:33 -0400 Subject: [PATCH] Deprecate HttpStatus codes 419, 420, 421 Issue: SPR-7942 --- .../org/springframework/http/HttpStatus.java | 27 +++++++------------ src/dist/changelog.txt | 2 +- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/HttpStatus.java b/spring-web/src/main/java/org/springframework/http/HttpStatus.java index 1de14c2884a..b733becaba4 100644 --- a/spring-web/src/main/java/org/springframework/http/HttpStatus.java +++ b/spring-web/src/main/java/org/springframework/http/HttpStatus.java @@ -96,7 +96,7 @@ public enum HttpStatus { MULTI_STATUS(207, "Multi-Status"), /** * {@code 208 Already Reported}. - * @see WebDAV Binding Extensions + * @see WebDAV Binding Extensions */ ALREADY_REPORTED(208, "Already Reported"), /** @@ -224,7 +224,7 @@ public enum HttpStatus { /** * {@code 413 Request Entity Too Large}. * @see HTTP/1.1 - */ + */ REQUEST_ENTITY_TOO_LARGE(413, "Request Entity Too Large"), /** * {@code 414 Request-URI Too Long}. @@ -252,18 +252,15 @@ public enum HttpStatus { */ I_AM_A_TEAPOT(418, "I'm a teapot"), /** - * {@code 419 Insufficient Space on Resource}. - * @see WebDAV Draft + * @deprecated See WebDAV Draft Changes */ INSUFFICIENT_SPACE_ON_RESOURCE(419, "Insufficient Space On Resource"), /** - * {@code 420 Method Failure}. - * @see WebDAV Draft + * @deprecated See WebDAV Draft Changes */ METHOD_FAILURE(420, "Method Failure"), /** - * {@code 421 Destination Locked}. - * @see WebDAV Draft + * @deprecated See WebDAV Draft Changes */ DESTINATION_LOCKED(421, "Destination Locked"), /** @@ -288,20 +285,17 @@ public enum HttpStatus { UPGRADE_REQUIRED(426, "Upgrade Required"), /** * {@code 428 Precondition Required}. - * @see Additional HTTP Status - * Codes + * @see Additional HTTP Status Codes */ PRECONDITION_REQUIRED(428, "Precondition Required"), /** * {@code 429 Too Many Requests}. - * @see Additional HTTP Status - * Codes + * @see Additional HTTP Status Codes */ TOO_MANY_REQUESTS(429, "Too Many Requests"), /** * {@code 431 Request Header Fields Too Large}. - * @see Additional HTTP Status - * Codes + * @see Additional HTTP Status Codes */ REQUEST_HEADER_FIELDS_TOO_LARGE(431, "Request Header Fields Too Large"), @@ -349,7 +343,7 @@ public enum HttpStatus { INSUFFICIENT_STORAGE(507, "Insufficient Storage"), /** * {@code 508 Loop Detected} - * @see WebDAV Binding Extensions + * @see WebDAV Binding Extensions */ LOOP_DETECTED(508, "Loop Detected"), /** @@ -363,8 +357,7 @@ public enum HttpStatus { NOT_EXTENDED(510, "Not Extended"), /** * {@code 511 Network Authentication Required}. - * @see Additional HTTP Status - * Codes + * @see Additional HTTP Status Codes */ NETWORK_AUTHENTICATION_REQUIRED(511, "Network Authentication Required"); diff --git a/src/dist/changelog.txt b/src/dist/changelog.txt index 7695816b797..aa107215522 100644 --- a/src/dist/changelog.txt +++ b/src/dist/changelog.txt @@ -21,7 +21,7 @@ Changes in version 3.2 M1 * translate IOException from Jackson to HttpMessageNotReadableException * fix content negotiation issue when sorting selected media types by quality value * Prevent further writing to the response when @ResponseStatus contains a reason - +* Deprecate HttpStatus codes 419, 420, 421 Changes in version 3.1.1 (2012-02-16) -------------------------------------