public enum RsStatus extends Enum<RsStatus>
| Modifier and Type | Class and Description |
|---|---|
static class |
RsStatus.ByCode
Searches
RsStatus instance by response code. |
| Enum Constant and Description |
|---|
ACCEPTED
Accepted.
|
BAD_RANGE
Requested Range Not Satisfiable.
|
BAD_REQUEST
Bad Request.
|
CONFLICT
Conflict.
|
CONTINUE
Status Continue.
|
CREATED
Created.
|
EXPECTATION_FAILED
Status
Expectation Failed.
|
FORBIDDEN
Forbidden.
|
FOUND
Found.
|
INTERNAL_ERROR
Internal Server Error.
|
LENGTH_REQUIRED
Length Required.
|
METHOD_NOT_ALLOWED
Method Not Allowed.
|
MOVED_PERMANENTLY
Moved Permanently.
|
NO_CONTENT
No Content.
|
NOT_FOUND
Not Found.
|
NOT_IMPLEMENTED
Not Implemented.
|
NOT_MODIFIED
Not Modified.
|
OK
OK.
|
PAYLOAD_TOO_LARGE
Payload Too Large.
|
REQUEST_TIMEOUT
Request Time-out.
|
TEMPORARY_REDIRECT
Temporary Redirect.
|
UNAUTHORIZED
Unauthorized.
|
UNAVAILABLE
Service Unavailable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
clientError()
Checks whether the RsStatus is a client error.
|
String |
code()
Code as 3-digit string.
|
boolean |
error()
Checks whether the RsStatus is an error.
|
boolean |
information()
Checks whether the RsStatus is an informational group (1xx).
|
boolean |
redirection()
Checks whether the RsStatus is a redirection.
|
boolean |
serverError()
Checks whether the RsStatus is a server error.
|
boolean |
success()
Checks whether the RsStatus is a successful group (2xx).
|
static RsStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RsStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RsStatus OK
public static final RsStatus CREATED
public static final RsStatus ACCEPTED
public static final RsStatus NO_CONTENT
public static final RsStatus MOVED_PERMANENTLY
public static final RsStatus FOUND
public static final RsStatus NOT_MODIFIED
public static final RsStatus TEMPORARY_REDIRECT
public static final RsStatus BAD_REQUEST
public static final RsStatus UNAUTHORIZED
public static final RsStatus FORBIDDEN
public static final RsStatus NOT_FOUND
public static final RsStatus METHOD_NOT_ALLOWED
public static final RsStatus REQUEST_TIMEOUT
public static final RsStatus CONFLICT
public static final RsStatus LENGTH_REQUIRED
public static final RsStatus PAYLOAD_TOO_LARGE
public static final RsStatus BAD_RANGE
public static final RsStatus EXPECTATION_FAILED
public static final RsStatus INTERNAL_ERROR
public static final RsStatus NOT_IMPLEMENTED
public static final RsStatus UNAVAILABLE
public static RsStatus[] values()
for (RsStatus c : RsStatus.values()) System.out.println(c);
public static RsStatus 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 String code()
public boolean information()
public boolean success()
public boolean redirection()
public boolean clientError()
public boolean serverError()
public boolean error()
Copyright © 2012–2020 jcabi.com. All rights reserved.