@@ -127,13 +127,6 @@ public enum HttpStatus implements HttpStatusCode {
127
127
* @see <a href="https://tools.ietf.org/html/rfc7231#section-6.4.3">HTTP/1.1: Semantics and Content, section 6.4.3</a>
128
128
*/
129
129
FOUND (302 , Series .REDIRECTION , "Found" ),
130
- /**
131
- * {@code 302 Moved Temporarily}.
132
- * @see <a href="https://tools.ietf.org/html/rfc1945#section-9.3">HTTP/1.0, section 9.3</a>
133
- * @deprecated in favor of {@link #FOUND} which will be returned from {@code HttpStatus.valueOf(302)}
134
- */
135
- @ Deprecated
136
- MOVED_TEMPORARILY (302 , Series .REDIRECTION , "Moved Temporarily" ),
137
130
/**
138
131
* {@code 303 See Other}.
139
132
* @see <a href="https://tools.ietf.org/html/rfc7231#section-6.4.4">HTTP/1.1: Semantics and Content, section 6.4.4</a>
@@ -144,13 +137,6 @@ public enum HttpStatus implements HttpStatusCode {
144
137
* @see <a href="https://tools.ietf.org/html/rfc7232#section-4.1">HTTP/1.1: Conditional Requests, section 4.1</a>
145
138
*/
146
139
NOT_MODIFIED (304 , Series .REDIRECTION , "Not Modified" ),
147
- /**
148
- * {@code 305 Use Proxy}.
149
- * @see <a href="https://tools.ietf.org/html/rfc7231#section-6.4.5">HTTP/1.1: Semantics and Content, section 6.4.5</a>
150
- * @deprecated due to security concerns regarding in-band configuration of a proxy
151
- */
152
- @ Deprecated
153
- USE_PROXY (305 , Series .REDIRECTION , "Use Proxy" ),
154
140
/**
155
141
* {@code 307 Temporary Redirect}.
156
142
* @see <a href="https://tools.ietf.org/html/rfc7231#section-6.4.7">HTTP/1.1: Semantics and Content, section 6.4.7</a>
@@ -239,28 +225,13 @@ public enum HttpStatus implements HttpStatusCode {
239
225
* HTTP/1.1: Semantics and Content, section 6.5.11</a>
240
226
*/
241
227
PAYLOAD_TOO_LARGE (413 , Series .CLIENT_ERROR , "Payload Too Large" ),
242
- /**
243
- * {@code 413 Request Entity Too Large}.
244
- * @see <a href="https://tools.ietf.org/html/rfc2616#section-10.4.14">HTTP/1.1, section 10.4.14</a>
245
- * @deprecated in favor of {@link #PAYLOAD_TOO_LARGE} which will be
246
- * returned from {@code HttpStatus.valueOf(413)}
247
- */
248
- @ Deprecated
249
- REQUEST_ENTITY_TOO_LARGE (413 , Series .CLIENT_ERROR , "Request Entity Too Large" ),
250
228
/**
251
229
* {@code 414 URI Too Long}.
252
230
* @since 4.1
253
231
* @see <a href="https://tools.ietf.org/html/rfc7231#section-6.5.12">
254
232
* HTTP/1.1: Semantics and Content, section 6.5.12</a>
255
233
*/
256
234
URI_TOO_LONG (414 , Series .CLIENT_ERROR , "URI Too Long" ),
257
- /**
258
- * {@code 414 Request-URI Too Long}.
259
- * @see <a href="https://tools.ietf.org/html/rfc2616#section-10.4.15">HTTP/1.1, section 10.4.15</a>
260
- * @deprecated in favor of {@link #URI_TOO_LONG} which will be returned from {@code HttpStatus.valueOf(414)}
261
- */
262
- @ Deprecated
263
- REQUEST_URI_TOO_LONG (414 , Series .CLIENT_ERROR , "Request-URI Too Long" ),
264
235
/**
265
236
* {@code 415 Unsupported Media Type}.
266
237
* @see <a href="https://tools.ietf.org/html/rfc7231#section-6.5.13">
@@ -283,27 +254,6 @@ public enum HttpStatus implements HttpStatusCode {
283
254
* @see <a href="https://tools.ietf.org/html/rfc2324#section-2.3.2">HTCPCP/1.0</a>
284
255
*/
285
256
I_AM_A_TEAPOT (418 , Series .CLIENT_ERROR , "I'm a teapot" ),
286
- /**
287
- * @deprecated See
288
- * <a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt">
289
- * WebDAV Draft Changes</a>
290
- */
291
- @ Deprecated
292
- INSUFFICIENT_SPACE_ON_RESOURCE (419 , Series .CLIENT_ERROR , "Insufficient Space On Resource" ),
293
- /**
294
- * @deprecated See
295
- * <a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt">
296
- * WebDAV Draft Changes</a>
297
- */
298
- @ Deprecated
299
- METHOD_FAILURE (420 , Series .CLIENT_ERROR , "Method Failure" ),
300
- /**
301
- * @deprecated
302
- * See <a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt">
303
- * WebDAV Draft Changes</a>
304
- */
305
- @ Deprecated
306
- DESTINATION_LOCKED (421 , Series .CLIENT_ERROR , "Destination Locked" ),
307
257
/**
308
258
* {@code 422 Unprocessable Entity}.
309
259
* @see <a href="https://tools.ietf.org/html/rfc4918#section-11.2">WebDAV</a>
@@ -551,17 +501,6 @@ public int value() {
551
501
return this .value ;
552
502
}
553
503
554
- /**
555
- * Return the {@code Series} enum constant for the supplied {@code HttpStatus}.
556
- * @param status a standard HTTP status enum constant
557
- * @return the {@code Series} enum constant for the supplied {@code HttpStatus}
558
- * @deprecated as of 5.3, in favor of invoking {@link HttpStatus#series()} directly
559
- */
560
- @ Deprecated
561
- public static Series valueOf (HttpStatus status ) {
562
- return status .series ;
563
- }
564
-
565
504
/**
566
505
* Return the {@code Series} enum constant for the supplied status code.
567
506
* @param statusCode the HTTP status code (potentially non-standard)
0 commit comments