Package fi.iki.elonen
Enum Class NanoHTTPD.Response.Status
- All Implemented Interfaces:
NanoHTTPD.Response.IStatus
,Serializable
,Comparable<NanoHTTPD.Response.Status>
,Constable
- Enclosing class:
NanoHTTPD.Response
public static enum NanoHTTPD.Response.Status
extends Enum<NanoHTTPD.Response.Status>
implements NanoHTTPD.Response.IStatus
Some HTTP response status codes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static NanoHTTPD.Response.Status
lookup
(int requestStatus) static NanoHTTPD.Response.Status
Returns the enum constant of this class with the specified name.static NanoHTTPD.Response.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SWITCH_PROTOCOL
-
OK
-
CREATED
-
ACCEPTED
-
NO_CONTENT
-
PARTIAL_CONTENT
-
MULTI_STATUS
-
REDIRECT
-
FOUND
Deprecated.Many user agents mishandle 302 in ways that violate the RFC1945 spec (i.e., redirect a POST to a GET). 303 and 307 were added in RFC2616 to address this. You should prefer 303 and 307 unless the calling user agent does not support 303 and 307 functionality -
REDIRECT_SEE_OTHER
-
NOT_MODIFIED
-
TEMPORARY_REDIRECT
-
BAD_REQUEST
-
UNAUTHORIZED
-
FORBIDDEN
-
NOT_FOUND
-
METHOD_NOT_ALLOWED
-
NOT_ACCEPTABLE
-
REQUEST_TIMEOUT
-
CONFLICT
-
GONE
-
LENGTH_REQUIRED
-
PRECONDITION_FAILED
-
PAYLOAD_TOO_LARGE
-
UNSUPPORTED_MEDIA_TYPE
-
RANGE_NOT_SATISFIABLE
-
EXPECTATION_FAILED
-
TOO_MANY_REQUESTS
-
INTERNAL_ERROR
-
NOT_IMPLEMENTED
-
SERVICE_UNAVAILABLE
-
UNSUPPORTED_HTTP_VERSION
-
-
Field Details
-
requestStatus
private final int requestStatus -
description
-
-
Constructor Details
-
Status
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
lookup
-
getDescription
- Specified by:
getDescription
in interfaceNanoHTTPD.Response.IStatus
-
getRequestStatus
public int getRequestStatus()- Specified by:
getRequestStatus
in interfaceNanoHTTPD.Response.IStatus
-