public class HttpStatus extends Object
HttpURLConnection
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_ACCEPTED
HTTP Status-Code 202: Accepted.
|
static int |
HTTP_ALREADY_REPORTED
HTTP Status-Code 208: Already Reported.
|
static int |
HTTP_BAD_GATEWAY
HTTP Status-Code 502: Bad Gateway.
|
static int |
HTTP_BAD_METHOD
HTTP Status-Code 405: Method Not Allowed.
|
static int |
HTTP_BAD_REQUEST
HTTP Status-Code 400: Bad Request.
|
static int |
HTTP_BANDWIDTH_LIMIT_EXCEEDED
HTTP Status-Code 509: Bandwidth Limit Exceeded.
|
static int |
HTTP_CHECKPOINT
HTTP Status-Code 103: Checkpoint.
|
static int |
HTTP_CLIENT_TIMEOUT
HTTP Status-Code 408: Request Time-Out.
|
static int |
HTTP_CONFLICT
HTTP Status-Code 409: Conflict.
|
static int |
HTTP_CONTINUE
HTTP Status-Code 100: Continue.
|
static int |
HTTP_CREATED
HTTP Status-Code 201: Created.
|
static int |
HTTP_ENTITY_TOO_LARGE
HTTP Status-Code 413: Request Entity Too Large.
|
static int |
HTTP_EXPECTATION_FAILED
HTTP Status-Code 417: Expectation Failed.
|
static int |
HTTP_FAILED_DEPENDENCY
HTTP Status-Code 424: Failed Dependency.
|
static int |
HTTP_FORBIDDEN
HTTP Status-Code 403: Forbidden.
|
static int |
HTTP_GATEWAY_TIMEOUT
HTTP Status-Code 504: Gateway Timeout.
|
static int |
HTTP_GONE
HTTP Status-Code 410: Gone.
|
static int |
HTTP_I_AM_A_TEAPOT
HTTP Status-Code 418: I'm a teapot.
|
static int |
HTTP_IM_USED
HTTP Status-Code 226: IM Used.
|
static int |
HTTP_INSUFFICIENT_STORAGE
HTTP Status-Code 507: Insufficient Storage.
|
static int |
HTTP_INTERNAL_ERROR
HTTP Status-Code 500: Internal Server Error.
|
static int |
HTTP_LENGTH_REQUIRED
HTTP Status-Code 411: Length Required.
|
static int |
HTTP_LOCKED
HTTP Status-Code 423: Locked.
|
static int |
HTTP_LOOP_DETECTED
HTTP Status-Code 508: Loop Detected.
|
static int |
HTTP_MOVED_PERM
HTTP Status-Code 301: Moved Permanently.
|
static int |
HTTP_MOVED_TEMP
HTTP Status-Code 302: Temporary Redirect.
|
static int |
HTTP_MULT_CHOICE
HTTP Status-Code 300: Multiple Choices.
|
static int |
HTTP_MULTI_STATUS
HTTP Status-Code 207: Multi-Status.
|
static int |
HTTP_NETWORK_AUTHENTICATION_REQUIRED
HTTP Status-Code 511: Network Authentication Required.
|
static int |
HTTP_NO_CONTENT
HTTP Status-Code 204: No Content.
|
static int |
HTTP_NOT_ACCEPTABLE
HTTP Status-Code 406: Not Acceptable.
|
static int |
HTTP_NOT_AUTHORITATIVE
HTTP Status-Code 203: Non-Authoritative Information.
|
static int |
HTTP_NOT_EXTENDED
HTTP Status-Code 510: Not Extended.
|
static int |
HTTP_NOT_FOUND
HTTP Status-Code 404: Not Found.
|
static int |
HTTP_NOT_IMPLEMENTED
HTTP Status-Code 501: Not Implemented.
|
static int |
HTTP_NOT_MODIFIED
HTTP Status-Code 304: Not Modified.
|
static int |
HTTP_OK
HTTP Status-Code 200: OK.
|
static int |
HTTP_PARTIAL
HTTP Status-Code 206: Partial Content.
|
static int |
HTTP_PAYMENT_REQUIRED
HTTP Status-Code 402: Payment Required.
|
static int |
HTTP_PERMANENT_REDIRECT
HTTP 1.1 Status-Code 308: Permanent Redirect 永久重定向
见:RFC-7231 |
static int |
HTTP_PRECON_FAILED
HTTP Status-Code 412: Precondition Failed.
|
static int |
HTTP_PRECONDITION_REQUIRED
HTTP Status-Code 428: Precondition Required.
|
static int |
HTTP_PROCESSING
HTTP Status-Code 102: Processing.
|
static int |
HTTP_PROXY_AUTH
HTTP Status-Code 407: Proxy Authentication Required.
|
static int |
HTTP_REQ_TOO_LONG
HTTP Status-Code 414: Request-URI Too Large.
|
static int |
HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE
HTTP Status-Code 431: Request Header Fields Too Large.
|
static int |
HTTP_REQUESTED_RANGE_NOT_SATISFIABLE
HTTP Status-Code 416: Requested Range Not Satisfiable.
|
static int |
HTTP_RESET
HTTP Status-Code 205: Reset Content.
|
static int |
HTTP_SEE_OTHER
HTTP Status-Code 303: See Other.
|
static int |
HTTP_SWITCHING_PROTOCOLS
HTTP Status-Code 101: Switching Protocols.
|
static int |
HTTP_TEMP_REDIRECT
HTTP 1.1 Status-Code 307: Temporary Redirect.
|
static int |
HTTP_TOO_EARLY
HTTP Status-Code 425: Too Early.
|
static int |
HTTP_TOO_MANY_REQUESTS
HTTP Status-Code 429: Too Many Requests.
|
static int |
HTTP_UNAUTHORIZED
HTTP Status-Code 401: Unauthorized.
|
static int |
HTTP_UNAVAILABLE
HTTP Status-Code 503: Service Unavailable.
|
static int |
HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
HTTP Status-Code 451: Unavailable For Legal Reasons.
|
static int |
HTTP_UNPROCESSABLE_ENTITY
HTTP Status-Code 422: Unprocessable Entity.
|
static int |
HTTP_UNSUPPORTED_TYPE
HTTP Status-Code 415: Unsupported Media Type.
|
static int |
HTTP_UPGRADE_REQUIRED
HTTP Status-Code 426: Upgrade Required.
|
static int |
HTTP_USE_PROXY
HTTP Status-Code 305: Use Proxy.
|
static int |
HTTP_VARIANT_ALSO_NEGOTIATES
HTTP Status-Code 506: Variant Also Negotiates.
|
static int |
HTTP_VERSION
HTTP Status-Code 505: HTTP Version Not Supported.
|
Constructor and Description |
---|
HttpStatus() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isRedirected(int responseCode)
是否为重定向状态码
|
public static final int HTTP_CONTINUE
public static final int HTTP_SWITCHING_PROTOCOLS
public static final int HTTP_PROCESSING
public static final int HTTP_CHECKPOINT
public static final int HTTP_OK
public static final int HTTP_CREATED
public static final int HTTP_ACCEPTED
public static final int HTTP_NOT_AUTHORITATIVE
public static final int HTTP_NO_CONTENT
public static final int HTTP_RESET
public static final int HTTP_PARTIAL
public static final int HTTP_MULTI_STATUS
public static final int HTTP_ALREADY_REPORTED
public static final int HTTP_IM_USED
public static final int HTTP_MULT_CHOICE
public static final int HTTP_MOVED_PERM
public static final int HTTP_MOVED_TEMP
public static final int HTTP_SEE_OTHER
public static final int HTTP_NOT_MODIFIED
public static final int HTTP_USE_PROXY
public static final int HTTP_TEMP_REDIRECT
public static final int HTTP_PERMANENT_REDIRECT
public static final int HTTP_BAD_REQUEST
public static final int HTTP_UNAUTHORIZED
public static final int HTTP_PAYMENT_REQUIRED
public static final int HTTP_FORBIDDEN
public static final int HTTP_NOT_FOUND
public static final int HTTP_BAD_METHOD
public static final int HTTP_NOT_ACCEPTABLE
public static final int HTTP_PROXY_AUTH
public static final int HTTP_CLIENT_TIMEOUT
public static final int HTTP_CONFLICT
public static final int HTTP_GONE
public static final int HTTP_LENGTH_REQUIRED
public static final int HTTP_PRECON_FAILED
public static final int HTTP_ENTITY_TOO_LARGE
public static final int HTTP_REQ_TOO_LONG
public static final int HTTP_UNSUPPORTED_TYPE
public static final int HTTP_REQUESTED_RANGE_NOT_SATISFIABLE
public static final int HTTP_EXPECTATION_FAILED
public static final int HTTP_I_AM_A_TEAPOT
public static final int HTTP_UNPROCESSABLE_ENTITY
public static final int HTTP_LOCKED
public static final int HTTP_FAILED_DEPENDENCY
public static final int HTTP_TOO_EARLY
public static final int HTTP_UPGRADE_REQUIRED
public static final int HTTP_PRECONDITION_REQUIRED
public static final int HTTP_TOO_MANY_REQUESTS
public static final int HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE
public static final int HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
public static final int HTTP_INTERNAL_ERROR
public static final int HTTP_NOT_IMPLEMENTED
public static final int HTTP_BAD_GATEWAY
public static final int HTTP_UNAVAILABLE
public static final int HTTP_GATEWAY_TIMEOUT
public static final int HTTP_VERSION
public static final int HTTP_VARIANT_ALSO_NEGOTIATES
public static final int HTTP_INSUFFICIENT_STORAGE
public static final int HTTP_LOOP_DETECTED
public static final int HTTP_BANDWIDTH_LIMIT_EXCEEDED
public static final int HTTP_NOT_EXTENDED
public static final int HTTP_NETWORK_AUTHENTICATION_REQUIRED
Copyright © 2024. All rights reserved.