public static class Response.Code
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCEPTED
Request was accepted (202).
|
static int |
BAD_REQUEST
Request problem (400).
|
static int |
FORBIDDEN
Access to resource is forbidden (403).
|
static int |
NO_CONTENT
No content (204).
|
static int |
NOT_FOUND
Resource was not found (404).
|
static int |
OK
Successful (200).
|
static int |
SERVER_ERROR
Server produced an error (500).
|
static int |
SERVER_UNAVAILABLE
Server is unavailable (503).
|
static int |
UNAUTHORIZED
Request request requires authorization (401).
|
| Constructor and Description |
|---|
Code() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isOK(int code)
Determines if a response code is "OK".
|
public static final int OK
public static final int ACCEPTED
public static final int NO_CONTENT
public static final int BAD_REQUEST
public static final int UNAUTHORIZED
public static final int FORBIDDEN
public static final int NOT_FOUND
public static final int SERVER_ERROR
public static final int SERVER_UNAVAILABLE