10000 gogole-http-client: add STATUS_CODE_ACCEPTED to the list of status co… · rchani99/google-http-java-client@d5ee0c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit d5ee0c9

Browse files
mgenovchingor13
authored andcommitted
gogole-http-client: add STATUS_CODE_ACCEPTED to the list of status codes (googleapis#413)
Added constant for STATUS_CODE_ACCEPTED in the HttpStatusCodes interface.
1 parent b4aca70 commit d5ee0c9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,18 @@ public class HttpStatusCodes {
2626
/** Status code for a successful request. */
2727
public static final int STATUS_CODE_OK = 200;
2828

29-
/** Status code for a successful request that has been fulfilled to create a new resource. */
29+
/**
30+
* Status code for a successful request that has been fulfilled
31+
* to create a new resource.
32+
*/
3033
public static final int STATUS_CODE_CREATED = 201;
3134

35+
/**
36+
* Status code for a successful request that has been received
37+
* but not yet acted upon.
38+
*/
39+
public static final int STATUS_CODE_ACCEPTED = 202;
40+
3241
/**
3342
* Status code for a successful request with no content information.
3443
*

0 commit comments

Comments
 (0)
0