The response value provided by java HttpURLConnection is
/**
* HTTP Status-Code 200: OK.
*/
Public static final int HTTP_ OK = 200;
/**
* HTTP Status-Code 201: Created.
*/
Public static finals int HTTP_CREATED = 201;
/**
* HTTP Status-Code 202: Accepted.
*/
Public static final int http_access Ted = 202;
/**
* HTTP Status-Code 203: Non-Authoritative Information.
*/
Public static final int HTTP_NOT_AUTHORITATIVE = 203;
/**
* HTTP Status-Code 204: No Content.
*/
Public static final int HTTP_NO_CONTENT = 204;
/**
* HTTP Status-Code 205: Reset Content.
*/
Public static final int http_resets = 205;
/**
* HTTP Status-Code 206: Partial Content.
*/
Public static final int HTTP_PARTIAL = 206;
/* 3XX: relocation/redirect */
/**
* HTTP Status-Code 300: Multiple Choices.
*/
Public static final int HTTP_MULT_CHOICE = 300;
/**
* HTTP Status-Code 301: Moved Permanently.
*/
Public static final int http_movable ed_perm = 301;
/**
* HTTP Status-Code 302: Temporary Redirect.
*/
Public static final int HTTP_MOVED_TEMP = 302;
/**
* HTTP Status-Code 303: See Other.
*/
Public static final int HTTP_SEE_OTHER = 303;
/**
* HTTP Status-Code 304: Not Modified.
*/
Public static final int HTTP_NOT_MODIFIED = 304;
/**
* HTTP Status-Code 305: Use Proxy.
*/
Public static final int HTTP_USE_PROXY = 305;
/* 4XX: client error */
/**
* HTTP Status-Code 400: Bad Request.
*/
Public static final int HTTP_BAD_REQUEST = 400;
/**
* HTTP Status-Code 401: Unauthorized.
*/
Public static final int HTTP_UNAUTHORIZED = 401;
/**
* HTTP Status-Code 402: Payment Required.
*/
Public static final int http_payment_required= 402;
/**
* HTTP Status-Code 403: Forbidden.
*/
Public static final int HTTP_FORBIDDEN = 403;
/**
* HTTP Status-Code 404: Not Found.
*/
Public static final int HTTP_NOT_FOUND = 404;
/**
* HTTP Status-Code 405: Method Not Allowed.
*/
Public static final int HTTP_BAD_METHOD = 405;
/**
* HTTP Status-Code 406: Not Acceptable.
*/
Public static final int HTTP_NOT_ACCEPTABLE = 406;
/**
* HTTP Status-Code 407: Proxy Authentication Required.
*/
Public static final int HTTP_PROXY_AUTH = 407;
/**
* HTTP Status-Code 408: Request Time-Out.
*/
Public static final int HTTP_CLIENT_TIMEOUT = 408;
/**
* HTTP Status-Code 409: Conflict.
*/
Public static final int HTTP_CONFLICT = 409;
/**
* HTTP Status-Code 410: Gone.
*/
Public static final int HTTP_GONE = 410;
/**
* HTTP Status-Code 411: Length Required.
*/
Public static final int http_length_required= 411;
/**
* HTTP Status-Code 412: Precondition Failed.
*/
Public static final int http_precon_faileds = 412;
/**
* HTTP Status-Code 413: Request Entity Too Large.
*/
Public static final int HTTP_ENTITY_TOO_LARGE = 413;
/**
* HTTP Status-Code 414: Request-URI Too Large.
*/
Public static final int HTTP_REQ_TOO_LONG = 414;
/**
* HTTP Status-Code 415: Unsupported Media Type.
*/
Public static final int HTTP_UNSUPPORTED_TYPE = 415;
/* 5XX: server error */
/**
* HTTP Status-Code 500: Internal Server Error.
* @ Deprecated it is misplaced and shouldn't have existed.
*/
@ Deprecated
Public static final int HTTP_SERVER_ERROR = 500;
/**
* HTTP Status-Code 500: Internal Server Error.
*/
Public static final int HTTP_INTERNAL_ERROR = 500;
/**
* Httpstatus-Code 501: Not Implemented.
*/
Public static final int http_not_implemented= 501;
/**
* HTTP Status-Code 502: Bad Gateway.
*/
Public static final int HTTP_BAD_GATEWAY = 502;
/**
* HTTP Status-Code 503: Service Unavailable.
*/
Public static final int HTTP_UNAVAILABLE = 503;
/**
* HTTP Status-Code 504: Gateway Timeout.
*/
Public static final int HTTP_GATEWAY_TIMEOUT = 504;
/**
* HTTP Status-Code 505: HTTP Version Not Supported.
*/
Public static final int HTTP_VERSION = 505;