@@ -223,7 +223,6 @@ public enum HttpStatus {
223223 PRECONDITION_FAILED (412 , Series .CLIENT_ERROR , "Precondition Failed" ),
224224 /**
225225 * {@code 413 Payload Too Large}.
226- * @since 4.1
227226 * @see <a href="https://tools.ietf.org/html/rfc7231#section-6.5.11">
228227 * HTTP/1.1: Semantics and Content, section 6.5.11</a>
229228 */
@@ -238,7 +237,6 @@ public enum HttpStatus {
238237 REQUEST_ENTITY_TOO_LARGE (413 , Series .CLIENT_ERROR , "Request Entity Too Large" ),
239238 /**
240239 * {@code 414 URI Too Long}.
241- * @since 4.1
242240 * @see <a href="https://tools.ietf.org/html/rfc7231#section-6.5.12">
243241 * HTTP/1.1: Semantics and Content, section 6.5.12</a>
244242 */
@@ -310,7 +308,6 @@ public enum HttpStatus {
310308 FAILED_DEPENDENCY (424 , Series .CLIENT_ERROR , "Failed Dependency" ),
311309 /**
312310 * {@code 425 Too Early}.
313- * @since 5.2
314311 * @see <a href="https://tools.ietf.org/html/rfc8470">RFC 8470</a>
315312 */
316313 TOO_EARLY (425 , Series .CLIENT_ERROR , "Too Early" ),
@@ -338,7 +335,6 @@ public enum HttpStatus {
338335 * {@code 451 Unavailable For Legal Reasons}.
339336 * @see <a href="https://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status-04">
340337 * An HTTP Status Code to Report Legal Obstacles</a>
341- * @since 4.3
342338 */
343339 UNAVAILABLE_FOR_LEGAL_REASONS (451 , Series .CLIENT_ERROR , "Unavailable For Legal Reasons" ),
344340
@@ -421,8 +417,8 @@ public enum HttpStatus {
421417 * Whether this status code is in the HTTP series
422418 * {@link spotty.common.http.HttpStatus.Series#INFORMATIONAL}.
423419 * <p>This is a shortcut for checking the value of {@link #series}.
424- * @since 4.0
425420 * @see #series
421+ * @return true if series informational
426422 */
427423 public boolean is1xxInformational () {
428424 return (series == Series .INFORMATIONAL );
@@ -432,8 +428,8 @@ public boolean is1xxInformational() {
432428 * Whether this status code is in the HTTP series
433429 * {@link spotty.common.http.HttpStatus.Series#SUCCESSFUL}.
434430 * <p>This is a shortcut for checking the value of {@link #series}.
435- * @since 4.0
436431 * @see #series
432+ * @return true if series successful
437433 */
438434 public boolean is2xxSuccessful () {
439435 return (series == Series .SUCCESSFUL );
@@ -443,8 +439,8 @@ public boolean is2xxSuccessful() {
443439 * Whether this status code is in the HTTP series
444440 * {@link spotty.common.http.HttpStatus.Series#REDIRECTION}.
445441 * <p>This is a shortcut for checking the value of {@link #series}.
446- * @since 4.0
447442 * @see #series
443+ * @return true if series redirection
448444 */
449445 public boolean is3xxRedirection () {
450446 return (series == Series .REDIRECTION );
@@ -454,8 +450,8 @@ public boolean is3xxRedirection() {
454450 * Whether this status code is in the HTTP series
455451 * {@link spotty.common.http.HttpStatus.Series#CLIENT_ERROR}.
456452 * <p>This is a shortcut for checking the value of {@link #series}.
457- * @since 4.0
458453 * @see #series
454+ * @return true if series related to client errors
459455 */
460456 public boolean is4xxClientError () {
461457 return (series == Series .CLIENT_ERROR );
@@ -465,8 +461,8 @@ public boolean is4xxClientError() {
465461 * Whether this status code is in the HTTP series
466462 * {@link spotty.common.http.HttpStatus.Series#SERVER_ERROR}.
467463 * <p>This is a shortcut for checking the value of {@link #series}.
468- * @since 4.0
469464 * @see #series
465+ * @return true if series related to server errors
470466 */
471467 public boolean is5xxServerError () {
472468 return (series == Series .SERVER_ERROR );
@@ -477,9 +473,9 @@ public boolean is5xxServerError() {
477473 * {@link spotty.common.http.HttpStatus.Series#CLIENT_ERROR} or
478474 * {@link spotty.common.http.HttpStatus.Series#SERVER_ERROR}.
479475 * <p>This is a shortcut for checking the value of {@link #series}.
480- * @since 5.0
481476 * @see #is4xxClientError()
482477 * @see #is5xxServerError()
478+ * @return true if status related to 4xx or 5xx errors
483479 */
484480 public boolean isError () {
485481 return (is4xxClientError () || is5xxServerError ());
@@ -511,7 +507,6 @@ public static HttpStatus valueOf(int statusCode) {
511507 * Resolve the given status code to an {@code HttpStatus}, if possible.
512508 * @param statusCode the HTTP status code (potentially non-standard)
513509 * @return the corresponding {@code HttpStatus}, or {@code null} if not found
514- * @since 5.0
515510 */
516511 public static HttpStatus resolve (int statusCode ) {
517512 // Use cached VALUES instead of values() to prevent array allocation.
@@ -545,6 +540,7 @@ public enum Series {
545540
546541 /**
547542 * Return the integer value of this status series. Ranges from 1 to 5.
543+ * @return series value
548544 */
549545 public int value () {
550546 return this .value ;
@@ -580,7 +576,6 @@ public static Series valueOf(int statusCode) {
580576 * Resolve the given status code to an {@code HttpStatus.Series}, if possible.
581577 * @param statusCode the HTTP status code (potentially non-standard)
582578 * @return the corresponding {@code Series}, or {@code null} if not found
583- * @since 5.1.3
584579 */
585580 public static Series resolve (int statusCode ) {
586581 int seriesCode = statusCode / 100 ;
0 commit comments