8000 Add Precondition Failed code (412) for users of the Compute API. · pan-dora/google-http-java-client@81fbe8d · GitHub
[go: up one dir, main page]

Skip to content

Commit 81fbe8d

Browse files
zoltak-ggarrettjonesgoogle
authored andcommitted
Add Precondition Failed code (412) for users of the Compute API.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133154438
1 parent 945d79f commit 81fbe8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google-http-client/src/main/java/com/google/api/client/http/HttpStatusCodes.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ public class HttpStatusCodes {
6868

6969
/** Status code for a request that could not be completed due to a resource conflict. */
7070
public static final int STATUS_CODE_CONFLICT = 409;
71+
72+
/** Status code for a request for which one of the conditions it was made under has failed. */
73+
public static final int STATUS_CODE_PRECONDITION_FAILED = 412;
7174

7275
/** Status code for an internal server error. */
7376
public static final int STATUS_CODE_SERVER_ERROR = 500;

0 commit comments

Comments
 (0)
0