public enum HttpStatus extends Enum<HttpStatus>
Enumeration
of all known HTTP status codes.Modifier and Type | Method and Description |
---|---|
int |
code()
Retrieve the status code for this instance.
|
String |
line()
Retrieve the status line for this instance.
|
static HttpStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatus INFORMATIONAL_CONTINUE
public static final HttpStatus INFORMATIONAL_SWITCHING_PROTOCOLS
public static final HttpStatus SUCCESS_OK
public static final HttpStatus SUCCESS_CREATED
public static final HttpStatus SUCCESS_ACCEPTED
public static final HttpStatus SUCCESS_NON_AUTHORATIVE_INFORMATION
public static final HttpStatus SUCCESS_NO_CONTENT
public static final HttpStatus SUCCESS_RESET_CONTENT
public static final HttpStatus SUCCESS_PARTIAL_CONTENT
public static final HttpStatus REDIRECTION_MULTIPLE_CHOICES
public static final HttpStatus REDIRECTION_MOVED_PERMANENTLY
public static final HttpStatus REDIRECTION_FOUND
public static final HttpStatus REDIRECTION_SEE_OTHER
public static final HttpStatus REDIRECTION_NOT_MODIFIED
public static final HttpStatus REDIRECTION_USE_PROXY
public static final HttpStatus REDIRECTION_TEMPORARILY_REDIRECT
public static final HttpStatus CLIENT_ERROR_BAD_REQUEST
public static final HttpStatus CLIENT_ERROR_UNAUTHORIZED
public static final HttpStatus CLIENT_ERROR_FORBIDDEN
public static final HttpStatus CLIENT_ERROR_NOT_FOUND
public static final HttpStatus CLIENT_ERROR_METHOD_NOT_ALLOWED
public static final HttpStatus CLIENT_ERROR_NOT_ACCEPTABLE
public static final HttpStatus CLIENT_ERROR_PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatus CLIENT_ERROR_REQUEST_TIMEOUT
public static final HttpStatus CLIENT_ERROR_CONFLICT
public static final HttpStatus CLIENT_ERROR_GONE
public static final HttpStatus CLIENT_ERROR_LENGTH_REQUIRED
public static final HttpStatus CLIENT_ERROR_PRECONDITION_FAILED
public static final HttpStatus CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE
public static final HttpStatus CLIENT_ERROR_REQUEST_URI_TOO_LONG
public static final HttpStatus CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE
public static final HttpStatus CLIENT_ERROR_REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatus CLIENT_ERROR_EXPECTATION_FAILED
public static final HttpStatus SERVER_ERROR_INTERNAL_SERVER_ERROR
public static final HttpStatus SERVER_ERROR_NOT_IMPLEMENTED
public static final HttpStatus SERVER_ERROR_BAD_GATEWAY
public static final HttpStatus SERVER_ERROR_SERVICE_UNAVAILABLE
public static final HttpStatus SERVER_ERROR_GATEWAY_TIMEOUT
public static final HttpStatus SERVER_ERROR_HTTP_VERSION_NOT_SUPPORTED
public static HttpStatus[] values()
for (HttpStatus c : HttpStatus.values()) System.out.println(c);
public static HttpStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int code()
public String line()
Copyright © 2004–2021 Apache MINA Project. All rights reserved.