1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -319,6 +319,12 @@ public enum HttpStatus {
319
319
* @see <a href="https://tools.ietf.org/html/rfc4918#section-11.4">WebDAV</a>
320
320
*/
321
321
FAILED_DEPENDENCY (424 , "Failed Dependency" ),
322
+ /**
323
+ * {@code 425 Too Early}.
324
+ * @since 5.2
325
+ * @see <a href="https://tools.ietf.org/html/rfc8470">RFC 8470</a>
326
+ */
327
+ TOO_EARLY (425 , "Too Early" ),
322
328
/**
323
329
* {@code 426 Upgrade Required}.
324
330
* @see <a href="https://tools.ietf.org/html/rfc2817#section-6">Upgrading to TLS Within HTTP/1.1</a>
@@ -447,6 +453,7 @@ public Series series() {
447
453
* Whether this status code is in the HTTP series
448
454
* {@link org.springframework.http.HttpStatus.Series#INFORMATIONAL}.
449
455
* This is a shortcut for checking the value of {@link #series()}.
456
+ * @since 4.0
450
457
* @see #series()
451
458
*/
452
459
public boolean is1xxInformational () {
@@ -457,6 +464,7 @@ public boolean is1xxInformational() {
457
464
* Whether this status code is in the HTTP series
458
465
* {@link org.springframework.http.HttpStatus.Series#SUCCESSFUL}.
459
466
* This is a shortcut for checking the value of {@link #series()}.
467
+ * @since 4.0
460
468
* @see #series()
461
469
*/
462
470
public boolean is2xxSuccessful () {
@@ -467,6 +475,7 @@ public boolean is2xxSuccessful() {
467
475
* Whether this status code is in the HTTP series
468
476
* {@link org.springframework.http.HttpStatus.Series#REDIRECTION}.
469
477
* This is a shortcut for checking the value of {@link #series()}.
478
+ * @since 4.0
470
479
* @see #series()
471
480
*/
472
481
public boolean is3xxRedirection () {
@@ -477,6 +486,7 @@ public boolean is3xxRedirection() {
477
486
* Whether this status code is in the HTTP series
478
487
* {@link org.springframework.http.HttpStatus.Series#CLIENT_ERROR}.
479
488
* This is a shortcut for checking the value of {@link #series()}.
489
+ * @since 4.0
480
490
* @see #series()
481
491
*/
482
492
public boolean is4xxClientError () {
@@ -487,6 +497,7 @@ public boolean is4xxClientError() {
487
497
* Whether this status code is in the HTTP series
488
498
* {@link org.springframework.http.HttpStatus.Series#SERVER_ERROR}.
489
499
* This is a shortcut for checking the value of {@link #series()}.
500
+ * @since 4.0
490
501
* @see #series()
491
502
*/
492
503
public boolean is5xxServerError () {
0 commit comments