Package tilda.utils
Enum HttpStatus
- java.lang.Object
-
- java.lang.Enum<HttpStatus>
-
- tilda.utils.HttpStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpStatus>
public enum HttpStatus extends java.lang.Enum<HttpStatus>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpStatus
parse(int Code)
static HttpStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final HttpStatus OK
-
BadRequest
public static final HttpStatus BadRequest
-
Unauthorized
public static final HttpStatus Unauthorized
-
PaymentRequired
public static final HttpStatus PaymentRequired
-
Forbidden
public static final HttpStatus Forbidden
-
ResourceNotFound
public static final HttpStatus ResourceNotFound
-
MethodNotAllowed
public static final HttpStatus MethodNotAllowed
-
NotAcceptable
public static final HttpStatus NotAcceptable
-
ProxyAuthenticationRequired
public static final HttpStatus ProxyAuthenticationRequired
-
RequestTimeout
public static final HttpStatus RequestTimeout
-
Conflict
public static final HttpStatus Conflict
-
Gone
public static final HttpStatus Gone
-
LengthRequired
public static final HttpStatus LengthRequired
-
PreconditionFailed
public static final HttpStatus PreconditionFailed
-
RequestEntityTooLarge
public static final HttpStatus RequestEntityTooLarge
-
RequestURITooLong
public static final HttpStatus RequestURITooLong
-
UnsupportedMediaType
public static final HttpStatus UnsupportedMediaType
-
RequestedRangeNotSatisfiable
public static final HttpStatus RequestedRangeNotSatisfiable
-
ExpectationFailed
public static final HttpStatus ExpectationFailed
-
InternalServerError
public static final HttpStatus InternalServerError
-
NotImplemented
public static final HttpStatus NotImplemented
-
BadGateway
public static final HttpStatus BadGateway
-
ServiceUnavailable
public static final HttpStatus ServiceUnavailable
-
GatewayTimeout
public static final HttpStatus GatewayTimeout
-
HttpVersionNotSupported
public static final HttpStatus HttpVersionNotSupported
-
-
Method Detail
-
values
public static HttpStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpStatus c : HttpStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
parse
public static HttpStatus parse(int Code)
-
-