public final class StatusCode extends Enum
Modifier and Type | Field and Description |
---|---|
static StatusCode |
BAD_REQUEST
The request could not be understood due to malformed syntax.
|
static StatusCode |
BUSY_EVERYWHERE
The callee's end system was contacted successfully but the callee is busy and does not wish to take the call at
this time.
|
static StatusCode |
BUSY_HERE
The callee's end system was contacted successfully, but the callee is currently not willing or able to take
additional calls at this end system.
|
static StatusCode |
DECLINED
The callee's machine was successfully contacted but the user explicitly does not wish to or cannot participate.
|
static StatusCode |
FORBIDDEN
The server understood the request, but is refusing to fulfil it.
|
static StatusCode |
OK
Indicates the request was successful.
|
static StatusCode |
PROXYAUTH_REQUIRED
This code is similar to 401 (UNAUTHORIZED), but indicates that the client MUST first authenticate itself with the
proxy.
|
static StatusCode |
REQUEST_PENDING
Server has some pending request from the same dialog.
|
static StatusCode |
REQUEST_TERMINATED
Request has been terminated by bye or cancel.
|
static StatusCode |
REQUEST_TIMEOUT
Couldn't find the user in time.
|
static StatusCode |
RESOURCE_UNAVAILABLE
The server has definitive information that the user does not exist at the domain specified in the Request-URI.
|
static StatusCode |
RINGING
Destination user agent received INVITE, and is alerting user of call.
|
static StatusCode |
SERVER_ERROR
The server could not fulfill the request due to some unexpected condition.
|
static StatusCode |
SESSION_PROGRESS
This response may be used to send extra information for a call which is still being set up.
|
static StatusCode |
TEMPORARILY_UNAVAILABLE
Callee currently unavailable.
|
static StatusCode |
UNAUTHORIZED
The request requires user authentication.
|
static StatusCode |
UNKNOWN
Unknown status.
|
static StatusCode |
WEBSOCKET_ERROR
The error code for WebSocket.
|
Modifier and Type | Method and Description |
---|---|
static StatusCode |
getByCode(int code)
Get StatusCode by value.
|
int |
getCode()
Gets the code.
|
static StatusCode |
getStatusCode(Frame frame)
Extract the frame status code to
StatusCode enum. |
boolean |
isClientError()
Checks if the code indicates a client error (4xx).
|
boolean |
isGlobalError()
Checks if the code indicates a global error (6xx).
|
boolean |
isProvisional()
Checks if the code is provisional (1xx).
|
boolean |
isRedirect()
Checks if the code indicates redirect (3xx).
|
boolean |
isServerError()
Checks if the code indicates a server error (5xx).
|
boolean |
isSuccess()
Checks if the code indicates success (2xx).
|
static StatusCode |
valueOf(String name) |
static StatusCode[] |
values() |
public static final StatusCode RINGING
public static final StatusCode SESSION_PROGRESS
public static final StatusCode OK
public static final StatusCode BAD_REQUEST
public static final StatusCode UNAUTHORIZED
public static final StatusCode FORBIDDEN
public static final StatusCode RESOURCE_UNAVAILABLE
public static final StatusCode PROXYAUTH_REQUIRED
public static final StatusCode REQUEST_TIMEOUT
public static final StatusCode TEMPORARILY_UNAVAILABLE
public static final StatusCode BUSY_HERE
public static final StatusCode REQUEST_TERMINATED
public static final StatusCode REQUEST_PENDING
public static final StatusCode SERVER_ERROR
public static final StatusCode WEBSOCKET_ERROR
public static final StatusCode BUSY_EVERYWHERE
public static final StatusCode DECLINED
public static final StatusCode UNKNOWN
public static StatusCode[] values()
public static StatusCode valueOf(String name)
public boolean isProvisional()
public boolean isSuccess()
public boolean isRedirect()
public boolean isClientError()
public boolean isServerError()
public boolean isGlobalError()
public int getCode()
public static StatusCode getByCode(int code)
code
- status code valuepublic static StatusCode getStatusCode(Frame frame)
StatusCode
enum.frame
- JSON Frame