Package org.mockserver.model
Enum HttpStatusCode
- java.lang.Object
-
- java.lang.Enum<HttpStatusCode>
-
- org.mockserver.model.HttpStatusCode
-
- All Implemented Interfaces:
Serializable
,Comparable<HttpStatusCode>
public enum HttpStatusCode extends Enum<HttpStatusCode>
- Author:
- jamesdbloom
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
static HttpStatusCode
code(int code)
String
reasonPhrase()
static HttpStatusCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static HttpStatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_SET_000
public static final HttpStatusCode NOT_SET_000
-
CONTINUE_100
public static final HttpStatusCode CONTINUE_100
-
SWITCHING_PROTOCOLS_101
public static final HttpStatusCode SWITCHING_PROTOCOLS_101
-
PROCESSING_102
public static final HttpStatusCode PROCESSING_102
-
OK_200
public static final HttpStatusCode OK_200
-
CREATED_201
public static final HttpStatusCode CREATED_201
-
ACCEPTED_202
public static final HttpStatusCode ACCEPTED_202
-
NON_AUTHORITATIVE_INFORMATION_203
public static final HttpStatusCode NON_AUTHORITATIVE_INFORMATION_203
-
NO_CONTENT_204
public static final HttpStatusCode NO_CONTENT_204
-
RESET_CONTENT_205
public static final HttpStatusCode RESET_CONTENT_205
-
PARTIAL_CONTENT_206
public static final HttpStatusCode PARTIAL_CONTENT_206
-
MULTI_STATUS_207
public static final HttpStatusCode MULTI_STATUS_207
-
MULTIPLE_CHOICES_300
public static final HttpStatusCode MULTIPLE_CHOICES_300
-
MOVED_PERMANENTLY_301
public static final HttpStatusCode MOVED_PERMANENTLY_301
-
FOUND_302
public static final HttpStatusCode FOUND_302
-
SEE_OTHER_303
public static final HttpStatusCode SEE_OTHER_303
-
NOT_MODIFIED_304
public static final HttpStatusCode NOT_MODIFIED_304
-
USE_PROXY_305
public static final HttpStatusCode USE_PROXY_305
-
TEMPORARY_REDIRECT_307
public static final HttpStatusCode TEMPORARY_REDIRECT_307
-
BAD_REQUEST_400
public static final HttpStatusCode BAD_REQUEST_400
-
UNAUTHORIZED_401
public static final HttpStatusCode UNAUTHORIZED_401
-
PAYMENT_REQUIRED_402
public static final HttpStatusCode PAYMENT_REQUIRED_402
-
FORBIDDEN_403
public static final HttpStatusCode FORBIDDEN_403
-
NOT_FOUND_404
public static final HttpStatusCode NOT_FOUND_404
-
METHOD_NOT_ALLOWED_405
public static final HttpStatusCode METHOD_NOT_ALLOWED_405
-
NOT_ACCEPTABLE_406
public static final HttpStatusCode NOT_ACCEPTABLE_406
-
PROXY_AUTHENTICATION_REQUIRED_407
public static final HttpStatusCode PROXY_AUTHENTICATION_REQUIRED_407
-
REQUEST_TIMEOUT_408
public static final HttpStatusCode REQUEST_TIMEOUT_408
-
CONFLICT_409
public static final HttpStatusCode CONFLICT_409
-
GONE_410
public static final HttpStatusCode GONE_410
-
LENGTH_REQUIRED_411
public static final HttpStatusCode LENGTH_REQUIRED_411
-
PRECONDITION_FAILED_412
public static final HttpStatusCode PRECONDITION_FAILED_412
-
REQUEST_ENTITY_TOO_LARGE_413
public static final HttpStatusCode REQUEST_ENTITY_TOO_LARGE_413
-
REQUEST_URI_TOO_LONG_414
public static final HttpStatusCode REQUEST_URI_TOO_LONG_414
-
UNSUPPORTED_MEDIA_TYPE_415
public static final HttpStatusCode UNSUPPORTED_MEDIA_TYPE_415
-
REQUESTED_RANGE_NOT_SATISFIABLE_416
public static final HttpStatusCode REQUESTED_RANGE_NOT_SATISFIABLE_416
-
EXPECTATION_FAILED_417
public static final HttpStatusCode EXPECTATION_FAILED_417
-
UNPROCESSABLE_ENTITY_422
public static final HttpStatusCode UNPROCESSABLE_ENTITY_422
-
LOCKED_423
public static final HttpStatusCode LOCKED_423
-
FAILED_DEPENDENCY_424
public static final HttpStatusCode FAILED_DEPENDENCY_424
-
INTERNAL_SERVER_ERROR_500
public static final HttpStatusCode INTERNAL_SERVER_ERROR_500
-
NOT_IMPLEMENTED_501
public static final HttpStatusCode NOT_IMPLEMENTED_501
-
BAD_GATEWAY_502
public static final HttpStatusCode BAD_GATEWAY_502
-
SERVICE_UNAVAILABLE_503
public static final HttpStatusCode SERVICE_UNAVAILABLE_503
-
GATEWAY_TIMEOUT_504
public static final HttpStatusCode GATEWAY_TIMEOUT_504
-
HTTP_VERSION_NOT_SUPPORTED_505
public static final HttpStatusCode HTTP_VERSION_NOT_SUPPORTED_505
-
INSUFFICIENT_STORAGE_507
public static final HttpStatusCode INSUFFICIENT_STORAGE_507
-
-
Method Detail
-
values
public static HttpStatusCode[] 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 (HttpStatusCode c : HttpStatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpStatusCode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
code
public static HttpStatusCode code(int code)
-
code
public int code()
-
reasonPhrase
public String reasonPhrase()
-
-