Skip to content

Commit d4bcd0b

Browse files
Align deprecations
1 parent 5f5dc6b commit d4bcd0b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

problem4j-core/src/main/java/io/github/problem4j/core/ProblemStatus.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,9 +689,11 @@ public enum ProblemStatus {
689689
public static final String PROCESSING_TITLE = "Processing";
690690

691691
/** Status of {@link #CHECKPOINT}. */
692+
@Deprecated
692693
public static final int CHECKPOINT_STATUS = 103;
693694

694695
/** Title of {@link #CHECKPOINT}. */
696+
@Deprecated
695697
public static final String CHECKPOINT_TITLE = "Checkpoint";
696698

697699
/** Status of {@link #EARLY_HINTS}. */
@@ -791,9 +793,11 @@ public enum ProblemStatus {
791793
public static final String NOT_MODIFIED_TITLE = "Not Modified";
792794

793795
/** Status of {@link #USE_PROXY}. */
796+
@Deprecated
794797
public static final int USE_PROXY_STATUS = 305;
795798

796799
/** Title of {@link #USE_PROXY}. */
800+
@Deprecated
797801
public static final String USE_PROXY_TITLE = "Use Proxy";
798802

799803
/** Status of {@link #TEMPORARY_REDIRECT}. */
@@ -887,15 +891,19 @@ public enum ProblemStatus {
887891
public static final String PRECONDITION_FAILED_TITLE = "Precondition Failed";
888892

889893
/** Status of {@link #REQUEST_ENTITY_TOO_LARGE}. */
894+
@Deprecated
890895
public static final int REQUEST_ENTITY_TOO_LARGE_STATUS = 413;
891896

892897
/** Title of {@link #REQUEST_ENTITY_TOO_LARGE}. */
898+
@Deprecated
893899
public static final String REQUEST_ENTITY_TOO_LARGE_TITLE = "Request Entity Too Large";
894900

895901
/** Status of {@link #PAYLOAD_TOO_LARGE}. */
902+
@Deprecated
896903
public static final int PAYLOAD_TOO_LARGE_STATUS = 413;
897904

898905
/** Title of {@link #PAYLOAD_TOO_LARGE}. */
906+
@Deprecated
899907
public static final String PAYLOAD_TOO_LARGE_TITLE = "Payload Too Large";
900908

901909
/** Status of {@link #CONTENT_TOO_LARGE}. */
@@ -905,9 +913,11 @@ public enum ProblemStatus {
905913
public static final String CONTENT_TOO_LARGE_TITLE = "Content Too Large";
906914

907915
/** Status of {@link #REQUEST_URI_TOO_LONG}. */
916+
@Deprecated
908917
public static final int REQUEST_URI_TOO_LONG_STATUS = 414;
909918

910919
/** Title of {@link #REQUEST_URI_TOO_LONG}. */
920+
@Deprecated
911921
public static final String REQUEST_URI_TOO_LONG_TITLE = "Request-URI Too Long";
912922

913923
/** Status of {@link #URI_TOO_LONG}. */
@@ -923,9 +933,11 @@ public enum ProblemStatus {
923933
public static final String UNSUPPORTED_MEDIA_TYPE_TITLE = "Unsupported Media Type";
924934

925935
/** Status of {@link #REQUESTED_RANGE_NOT_SATISFIABLE}. */
936+
@Deprecated
926937
public static final int REQUESTED_RANGE_NOT_SATISFIABLE_STATUS = 416;
927938

928939
/** Title of {@link #REQUESTED_RANGE_NOT_SATISFIABLE}. */
940+
@Deprecated
929941
public static final String REQUESTED_RANGE_NOT_SATISFIABLE_TITLE =
930942
"Requested Range Not Satisfiable";
931943

@@ -954,9 +966,11 @@ public enum ProblemStatus {
954966
public static final String MISDIRECTED_REQUEST_TITLE = "Misdirected Request";
955967

956968
/** Status of {@link #UNPROCESSABLE_ENTITY}. */
969+
@Deprecated
957970
public static final int UNPROCESSABLE_ENTITY_STATUS = 422;
958971

959972
/** Title of {@link #UNPROCESSABLE_ENTITY}. */
973+
@Deprecated
960974
public static final String UNPROCESSABLE_ENTITY_TITLE = "Unprocessable Entity";
961975

962976
/** Status of {@link #UNPROCESSABLE_CONTENT}. */

0 commit comments

Comments
 (0)