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 final int http_created = 201;
/**
* HTTP Status-code 202:accepted.
*/
public static final int http_accepted = 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_reset = 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_moved_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_failed = 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 has 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;
/**
* HTTP Status-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;