[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class HttpStatusCodes (2.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0 (latest)](/java/docs/reference/google-http-client/latest/com.google.api.client.http.HttpStatusCodes)\n- [1.47.1](/java/docs/reference/google-http-client/1.47.1/com.google.api.client.http.HttpStatusCodes)\n- [1.46.3](/java/docs/reference/google-http-client/1.46.3/com.google.api.client.http.HttpStatusCodes)\n- [1.45.3](/java/docs/reference/google-http-client/1.45.3/com.google.api.client.http.HttpStatusCodes)\n- [1.44.2](/java/docs/reference/google-http-client/1.44.2/com.google.api.client.http.HttpStatusCodes)\n- [1.43.2](/java/docs/reference/google-http-client/1.43.2/com.google.api.client.http.HttpStatusCodes)\n- [1.42.3](/java/docs/reference/google-http-client/1.42.3/com.google.api.client.http.HttpStatusCodes)\n- [1.41.8](/java/docs/reference/google-http-client/1.41.8/com.google.api.client.http.HttpStatusCodes) \n\n public class HttpStatusCodes\n\nConstants enumerating the HTTP status codes. Includes status codes specified in [RFC2616](http://tools.ietf.org/html/rfc2616#section-10.3) (HTTP/1.1). \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e HttpStatusCodes \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Fields\n-------------\n\n### STATUS_CODE_ACCEPTED\n\n public static final int STATUS_CODE_ACCEPTED\n\nStatus code for a successful request that has been received but not yet acted upon.\n\n### STATUS_CODE_BAD_GATEWAY\n\n public static final int STATUS_CODE_BAD_GATEWAY\n\nStatus code for a bad gateway.\n\n### STATUS_CODE_BAD_REQUEST\n\n public static final int STATUS_CODE_BAD_REQUEST\n\nStatus code for a request that could not be understood by the server.\n\n### STATUS_CODE_CONFLICT\n\n public static final int STATUS_CODE_CONFLICT\n\nStatus code for a request that could not be completed due to a resource conflict.\n\n### STATUS_CODE_CREATED\n\n public static final int STATUS_CODE_CREATED\n\nStatus code for a successful request that has been fulfilled to create a new resource.\n\n### STATUS_CODE_FORBIDDEN\n\n public static final int STATUS_CODE_FORBIDDEN\n\nStatus code for a server that understood the request, but is refusing to fulfill it.\n\n### STATUS_CODE_FOUND\n\n public static final int STATUS_CODE_FOUND\n\nStatus code for a resource that has temporarily moved to a new URI.\n\n### STATUS_CODE_METHOD_NOT_ALLOWED\n\n public static final int STATUS_CODE_METHOD_NOT_ALLOWED\n\nStatus code for a method specified in the Request-Line is not allowed for the resource\nidentified by the Request-URI.\n\n### STATUS_CODE_MOVED_PERMANENTLY\n\n public static final int STATUS_CODE_MOVED_PERMANENTLY\n\nStatus code for a resource that has permanently moved to a new URI.\n\n### STATUS_CODE_MULTIPLE_CHOICES\n\n public static final int STATUS_CODE_MULTIPLE_CHOICES\n\nStatus code for a resource corresponding to any one of a set of representations.\n\n### STATUS_CODE_NOT_FOUND\n\n public static final int STATUS_CODE_NOT_FOUND\n\nStatus code for a server that has not found anything matching the Request-URI.\n\n### STATUS_CODE_NOT_MODIFIED\n\n public static final int STATUS_CODE_NOT_MODIFIED\n\nStatus code for a resource that access is allowed but the document has not been modified.\n\n### STATUS_CODE_NO_CONTENT\n\n public static final int STATUS_CODE_NO_CONTENT\n\nStatus code for a successful request with no content information.\n\n### STATUS_CODE_OK\n\n public static final int STATUS_CODE_OK\n\nStatus code for a successful request.\n\n### STATUS_CODE_PRECONDITION_FAILED\n\n public static final int STATUS_CODE_PRECONDITION_FAILED\n\nStatus code for a request for which one of the conditions it was made under has failed.\n\n### STATUS_CODE_SEE_OTHER\n\n public static final int STATUS_CODE_SEE_OTHER\n\nStatus code for a resource that has moved to a new URI and should be retrieved using GET.\n\n### STATUS_CODE_SERVER_ERROR\n\n public static final int STATUS_CODE_SERVER_ERROR\n\nStatus code for an internal server error.\n\n### STATUS_CODE_SERVICE_UNAVAILABLE\n\n public static final int STATUS_CODE_SERVICE_UNAVAILABLE\n\nStatus code for a service that is unavailable on the server.\n\n### STATUS_CODE_TEMPORARY_REDIRECT\n\n public static final int STATUS_CODE_TEMPORARY_REDIRECT\n\nStatus code for a resource that has temporarily moved to a new URI.\n\n### STATUS_CODE_UNAUTHORIZED\n\n public static final int STATUS_CODE_UNAUTHORIZED\n\nStatus code for a request that requires user authentication.\n\n### STATUS_CODE_UNPROCESSABLE_ENTITY\n\n public static final int STATUS_CODE_UNPROCESSABLE_ENTITY\n\nStatus code for a request for which the content-type and the request's syntax were correct but\nserver was not able to process entity.\n\nStatic Methods\n--------------\n\n### isRedirect(int statusCode)\n\n public static boolean isRedirect(int statusCode)\n\nReturns whether the given HTTP response status code is a redirect code `301, 302, 303,\n307, 308`.\n\n### isSuccess(int statusCode)\n\n public static boolean isSuccess(int statusCode)\n\nReturns whether the given HTTP response status code is a success code `\u003e= 200 and \u003c 300`.\n\nConstructors\n------------\n\n### HttpStatusCodes()\n\n public HttpStatusCodes()"]]