public static enum NanoHTTPD.Response.Status extends java.lang.Enum<NanoHTTPD.Response.Status>
Enum Constant and Description |
---|
ACCEPTED |
BAD_REQUEST |
CREATED |
FORBIDDEN |
INTERNAL_ERROR |
METHOD_NOT_ALLOWED |
NO_CONTENT |
NOT_FOUND |
NOT_MODIFIED |
OK |
PARTIAL_CONTENT |
RANGE_NOT_SATISFIABLE |
REDIRECT |
UNAUTHORIZED |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
int |
getRequestStatus() |
static NanoHTTPD.Response.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NanoHTTPD.Response.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NanoHTTPD.Response.Status OK
public static final NanoHTTPD.Response.Status CREATED
public static final NanoHTTPD.Response.Status ACCEPTED
public static final NanoHTTPD.Response.Status NO_CONTENT
public static final NanoHTTPD.Response.Status PARTIAL_CONTENT
public static final NanoHTTPD.Response.Status REDIRECT
public static final NanoHTTPD.Response.Status NOT_MODIFIED
public static final NanoHTTPD.Response.Status BAD_REQUEST
public static final NanoHTTPD.Response.Status UNAUTHORIZED
public static final NanoHTTPD.Response.Status FORBIDDEN
public static final NanoHTTPD.Response.Status NOT_FOUND
public static final NanoHTTPD.Response.Status METHOD_NOT_ALLOWED
public static final NanoHTTPD.Response.Status RANGE_NOT_SATISFIABLE
public static final NanoHTTPD.Response.Status INTERNAL_ERROR
public static NanoHTTPD.Response.Status[] values()
for (NanoHTTPD.Response.Status c : NanoHTTPD.Response.Status.values()) System.out.println(c);
public static NanoHTTPD.Response.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getRequestStatus()
public java.lang.String getDescription()