|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.client.http.HttpStatusCodes
public class HttpStatusCodes
Constants enumerating the HTTP status codes. Includes status codes specified in RFC2616 (HTTP/1.1).
Field Summary | |
---|---|
static int |
STATUS_CODE_FORBIDDEN
Status code for a server that understood the request, but is refusing to fulfill it. |
static int |
STATUS_CODE_FOUND
Status code for a resource that has temporarily moved to a new URI. |
static int |
STATUS_CODE_MOVED_PERMANENTLY
Status code for a resource that has permanently moved to a new URI. |
static int |
STATUS_CODE_MULTIPLE_CHOICES
Status code for a resource corresponding to any one of a set of representations. |
static int |
STATUS_CODE_NOT_FOUND
Status code for a server that has not found anything matching the Request-URI. |
static int |
STATUS_CODE_OK
Status code for a successful request. |
static int |
STATUS_CODE_SEE_OTHER
Status code for a resource that has moved to a new URI and should be retrieved using GET. |
static int |
STATUS_CODE_TEMPORARY_REDIRECT
Status code for a resource that has temporarily moved to a new URI. |
static int |
STATUS_CODE_UNAUTHORIZED
Status code for a request that requires user authentication. |
Constructor Summary | |
---|---|
HttpStatusCodes()
|
Method Summary | |
---|---|
static boolean |
isSuccess(int statusCode)
Returns whether the given HTTP response status code is a success code >= 200 and < 300 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_CODE_OK
public static final int STATUS_CODE_MULTIPLE_CHOICES
public static final int STATUS_CODE_MOVED_PERMANENTLY
public static final int STATUS_CODE_FOUND
public static final int STATUS_CODE_SEE_OTHER
public static final int STATUS_CODE_TEMPORARY_REDIRECT
public static final int STATUS_CODE_UNAUTHORIZED
public static final int STATUS_CODE_FORBIDDEN
public static final int STATUS_CODE_NOT_FOUND
Constructor Detail |
---|
public HttpStatusCodes()
Method Detail |
---|
public static boolean isSuccess(int statusCode)
>= 200 and < 300
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |