public enum HttpStatus extends Enum<HttpStatus>
| 枚举常量和说明 |
|---|
ACCEPTED
202 Accepted (HTTP/1.0 - RFC 1945)
|
BAD_GATEWAY
502 Bad Gateway (HTTP/1.0 - RFC 1945)
|
BAD_REQUEST
400 Bad Request (HTTP/1.1 - RFC 2616)
|
CONFLICT
409 Conflict (HTTP/1.1 - RFC 2616)
|
CONTINUE
100 Continue (HTTP/1.1 - RFC 2616)
|
CREATED
201 Created (HTTP/1.0 - RFC 1945)
|
EXPECTATION_FAILED
417 Expectation Failed (HTTP/1.1 - RFC 2616)
|
FAILED_DEPENDENCY
424 Failed Dependency (WebDAV - RFC 2518)
|
FORBIDDEN
403 Forbidden (HTTP/1.0 - RFC 1945)
|
GATEWAY_TIMEOUT
504 Gateway Timeout (HTTP/1.1 - RFC 2616)
|
GONE
410 Gone (HTTP/1.1 - RFC 2616)
|
HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported (HTTP/1.1 - RFC 2616)
|
INSUFFICIENT_SPACE_ON_RESOURCE
Static constant for a 419 error.
|
INSUFFICIENT_STORAGE
507 Insufficient Storage (WebDAV - RFC 2518)
|
INTERNAL_SERVER_ERROR
500 Server Error (HTTP/1.0 - RFC 1945)
|
LENGTH_REQUIRED
411 Length Required (HTTP/1.1 - RFC 2616)
|
LOCKED
423 Locked (WebDAV - RFC 2518)
|
METHOD_FAILURE
Static constant for a 420 error.
|
METHOD_NOT_ALLOWED
405 Method Not Allowed (HTTP/1.1 - RFC 2616)
|
MOVED_PERMANENTLY
301 Moved Permanently (HTTP/1.0 - RFC 1945)
|
MOVED_TEMPORARILY
302 Moved Temporarily (Sometimes Found) (HTTP/1.0 - RFC
1945)
|
MULTI_STATUS
207 Multi-Status (WebDAV - RFC 2518) or 207 Partial Update
OK (HTTP/1.1 - draft-ietf-http-v11-spec-rev-01?)
|
MULTIPLE_CHOICES
300 Mutliple Choices (HTTP/1.1 - RFC 2616)
|
NO_CONTENT
204 No Content (HTTP/1.0 - RFC 1945)
|
NON_AUTHORITATIVE_INFORMATION
203 Non Authoritative Information (HTTP/1.1 - RFC 2616)
|
NOT_ACCEPTABLE
406 Not Acceptable (HTTP/1.1 - RFC 2616)
|
NOT_FOUND
404 Not Found (HTTP/1.0 - RFC 1945)
|
NOT_IMPLEMENTED
501 Not Implemented (HTTP/1.0 - RFC 1945)
|
NOT_MODIFIED
304 Not Modified (HTTP/1.0 - RFC 1945)
|
OK
200 OK (HTTP/1.0 - RFC 1945)
|
PARTIAL_CONTENT
206 Partial Content (HTTP/1.1 - RFC 2616)
|
PAYMENT_REQUIRED
402 Payment Required (HTTP/1.1 - RFC 2616)
|
PRECONDITION_FAILED
412 Precondition Failed (HTTP/1.1 - RFC 2616)
|
PROCESSING
102 Processing (WebDAV - RFC 2518)
|
PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required (HTTP/1.1 - RFC 2616)
|
REQUEST_TIMEOUT
408 Request Timeout (HTTP/1.1 - RFC 2616)
|
REQUEST_TOO_LONG
413 Request Entity Too Large (HTTP/1.1 - RFC 2616)
|
REQUEST_URI_TOO_LONG
414 Request-URI Too Long (HTTP/1.1 - RFC 2616)
|
REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable (HTTP/1.1 - RFC 2616)
|
RESET_CONTENT
205 Reset Content (HTTP/1.1 - RFC 2616)
|
SEE_OTHER
303 See Other (HTTP/1.1 - RFC 2616)
|
SERVICE_UNAVAILABLE
503 Service Unavailable (HTTP/1.0 - RFC 1945)
|
SWITCHING_PROTOCOLS
101 Switching Protocols (HTTP/1.1 - RFC 2616)
|
TEMPORARY_REDIRECT
307 Temporary Redirect (HTTP/1.1 - RFC 2616)
|
UNAUTHORIZED
401 Unauthorized (HTTP/1.0 - RFC 1945)
|
UNPROCESSABLE_ENTITY
422 Unprocessable Entity (WebDAV - RFC 2518)
|
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type (HTTP/1.1 - RFC 2616)
|
USE_PROXY
305 Use Proxy (HTTP/1.1 - RFC 2616)
|
public static final HttpStatus CONTINUE
public static final HttpStatus SWITCHING_PROTOCOLS
public static final HttpStatus PROCESSING
public static final HttpStatus OK
public static final HttpStatus CREATED
public static final HttpStatus ACCEPTED
public static final HttpStatus NON_AUTHORITATIVE_INFORMATION
public static final HttpStatus NO_CONTENT
public static final HttpStatus RESET_CONTENT
public static final HttpStatus PARTIAL_CONTENT
public static final HttpStatus MULTI_STATUS
public static final HttpStatus MULTIPLE_CHOICES
public static final HttpStatus MOVED_PERMANENTLY
public static final HttpStatus MOVED_TEMPORARILY
public static final HttpStatus SEE_OTHER
public static final HttpStatus NOT_MODIFIED
public static final HttpStatus USE_PROXY
public static final HttpStatus TEMPORARY_REDIRECT
public static final HttpStatus BAD_REQUEST
public static final HttpStatus UNAUTHORIZED
public static final HttpStatus PAYMENT_REQUIRED
public static final HttpStatus FORBIDDEN
public static final HttpStatus NOT_FOUND
public static final HttpStatus METHOD_NOT_ALLOWED
public static final HttpStatus NOT_ACCEPTABLE
public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatus REQUEST_TIMEOUT
public static final HttpStatus CONFLICT
public static final HttpStatus GONE
public static final HttpStatus LENGTH_REQUIRED
public static final HttpStatus PRECONDITION_FAILED
public static final HttpStatus REQUEST_TOO_LONG
public static final HttpStatus REQUEST_URI_TOO_LONG
public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
public static final HttpStatus REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatus EXPECTATION_FAILED
public static final HttpStatus INSUFFICIENT_SPACE_ON_RESOURCE
public static final HttpStatus METHOD_FAILURE
public static final HttpStatus UNPROCESSABLE_ENTITY
public static final HttpStatus LOCKED
public static final HttpStatus FAILED_DEPENDENCY
public static final HttpStatus INTERNAL_SERVER_ERROR
public static final HttpStatus NOT_IMPLEMENTED
public static final HttpStatus BAD_GATEWAY
public static final HttpStatus SERVICE_UNAVAILABLE
public static final HttpStatus GATEWAY_TIMEOUT
public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
public static final HttpStatus INSUFFICIENT_STORAGE
public final int code
public final String info
public static HttpStatus[] values()
for (HttpStatus c : HttpStatus.values()) System.out.println(c);
public static HttpStatus valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public ResultMap to()
Copyright © 2015–2016. All rights reserved.