Package org.eclipse.jetty.http
Class HttpStatus
java.lang.Object
org.eclipse.jetty.http.HttpStatus
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Http Status Codes
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpStatus.Code
getCode
(int code) Deprecated.Get the HttpStatusCode for a specific codestatic String
getMessage
(int code) Deprecated.Get the status message for a specific code.static boolean
hasNoBody
(int status) Deprecated.static boolean
isClientError
(int code) Deprecated.Simple test against an code to determine if it falls into theClient Error
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.static boolean
isInformational
(int code) Deprecated.Simple test against an code to determine if it falls into theInformational
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.static boolean
isRedirection
(int code) Deprecated.Simple test against an code to determine if it falls into theRedirection
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.static boolean
isServerError
(int code) Deprecated.Simple test against an code to determine if it falls into theServer Error
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.static boolean
isSuccess
(int code) Deprecated.Simple test against an code to determine if it falls into theSuccess
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.
-
Field Details
-
CONTINUE_100
public static final int CONTINUE_100Deprecated.- See Also:
-
SWITCHING_PROTOCOLS_101
public static final int SWITCHING_PROTOCOLS_101Deprecated.- See Also:
-
PROCESSING_102
public static final int PROCESSING_102Deprecated.- See Also:
-
OK_200
public static final int OK_200Deprecated.- See Also:
-
CREATED_201
public static final int CREATED_201Deprecated.- See Also:
-
ACCEPTED_202
public static final int ACCEPTED_202Deprecated.- See Also:
-
NON_AUTHORITATIVE_INFORMATION_203
public static final int NON_AUTHORITATIVE_INFORMATION_203Deprecated.- See Also:
-
NO_CONTENT_204
public static final int NO_CONTENT_204Deprecated.- See Also:
-
RESET_CONTENT_205
public static final int RESET_CONTENT_205Deprecated.- See Also:
-
PARTIAL_CONTENT_206
public static final int PARTIAL_CONTENT_206Deprecated.- See Also:
-
MULTI_STATUS_207
public static final int MULTI_STATUS_207Deprecated.- See Also:
-
MULTIPLE_CHOICES_300
public static final int MULTIPLE_CHOICES_300Deprecated.- See Also:
-
MOVED_PERMANENTLY_301
public static final int MOVED_PERMANENTLY_301Deprecated.- See Also:
-
MOVED_TEMPORARILY_302
public static final int MOVED_TEMPORARILY_302Deprecated.- See Also:
-
FOUND_302
public static final int FOUND_302Deprecated.- See Also:
-
SEE_OTHER_303
public static final int SEE_OTHER_303Deprecated.- See Also:
-
NOT_MODIFIED_304
public static final int NOT_MODIFIED_304Deprecated.- See Also:
-
USE_PROXY_305
public static final int USE_PROXY_305Deprecated.- See Also:
-
TEMPORARY_REDIRECT_307
public static final int TEMPORARY_REDIRECT_307Deprecated.- See Also:
-
PERMANENT_REDIRECT_308
public static final int PERMANENT_REDIRECT_308Deprecated.- See Also:
-
BAD_REQUEST_400
public static final int BAD_REQUEST_400Deprecated.- See Also:
-
UNAUTHORIZED_401
public static final int UNAUTHORIZED_401Deprecated.- See Also:
-
PAYMENT_REQUIRED_402
public static final int PAYMENT_REQUIRED_402Deprecated.- See Also:
-
FORBIDDEN_403
public static final int FORBIDDEN_403Deprecated.- See Also:
-
NOT_FOUND_404
public static final int NOT_FOUND_404Deprecated.- See Also:
-
METHOD_NOT_ALLOWED_405
public static final int METHOD_NOT_ALLOWED_405Deprecated.- See Also:
-
NOT_ACCEPTABLE_406
public static final int NOT_ACCEPTABLE_406Deprecated.- See Also:
-
PROXY_AUTHENTICATION_REQUIRED_407
public static final int PROXY_AUTHENTICATION_REQUIRED_407Deprecated.- See Also:
-
REQUEST_TIMEOUT_408
public static final int REQUEST_TIMEOUT_408Deprecated.- See Also:
-
CONFLICT_409
public static final int CONFLICT_409Deprecated.- See Also:
-
GONE_410
public static final int GONE_410Deprecated.- See Also:
-
LENGTH_REQUIRED_411
public static final int LENGTH_REQUIRED_411Deprecated.- See Also:
-
PRECONDITION_FAILED_412
public static final int PRECONDITION_FAILED_412Deprecated.- See Also:
-
REQUEST_ENTITY_TOO_LARGE_413
Deprecated.- See Also:
-
PAYLOAD_TOO_LARGE_413
public static final int PAYLOAD_TOO_LARGE_413Deprecated.- See Also:
-
REQUEST_URI_TOO_LONG_414
Deprecated.- See Also:
-
URI_TOO_LONG_414
public static final int URI_TOO_LONG_414Deprecated.- See Also:
-
UNSUPPORTED_MEDIA_TYPE_415
public static final int UNSUPPORTED_MEDIA_TYPE_415Deprecated.- See Also:
-
REQUESTED_RANGE_NOT_SATISFIABLE_416
Deprecated.- See Also:
-
RANGE_NOT_SATISFIABLE_416
public static final int RANGE_NOT_SATISFIABLE_416Deprecated.- See Also:
-
EXPECTATION_FAILED_417
public static final int EXPECTATION_FAILED_417Deprecated.- See Also:
-
IM_A_TEAPOT_418
public static final int IM_A_TEAPOT_418Deprecated.- See Also:
-
ENHANCE_YOUR_CALM_420
public static final int ENHANCE_YOUR_CALM_420Deprecated.- See Also:
-
MISDIRECTED_REQUEST_421
public static final int MISDIRECTED_REQUEST_421Deprecated.- See Also:
-
UNPROCESSABLE_ENTITY_422
public static final int UNPROCESSABLE_ENTITY_422Deprecated.- See Also:
-
LOCKED_423
public static final int LOCKED_423Deprecated.- See Also:
-
FAILED_DEPENDENCY_424
public static final int FAILED_DEPENDENCY_424Deprecated.- See Also:
-
UPGRADE_REQUIRED_426
public static final int UPGRADE_REQUIRED_426Deprecated.- See Also:
-
PRECONDITION_REQUIRED_428
public static final int PRECONDITION_REQUIRED_428Deprecated.- See Also:
-
TOO_MANY_REQUESTS_429
public static final int TOO_MANY_REQUESTS_429Deprecated.- See Also:
-
REQUEST_HEADER_FIELDS_TOO_LARGE_431
public static final int REQUEST_HEADER_FIELDS_TOO_LARGE_431Deprecated.- See Also:
-
UNAVAILABLE_FOR_LEGAL_REASONS_451
public static final int UNAVAILABLE_FOR_LEGAL_REASONS_451Deprecated.- See Also:
-
INTERNAL_SERVER_ERROR_500
public static final int INTERNAL_SERVER_ERROR_500Deprecated.- See Also:
-
NOT_IMPLEMENTED_501
public static final int NOT_IMPLEMENTED_501Deprecated.- See Also:
-
BAD_GATEWAY_502
public static final int BAD_GATEWAY_502Deprecated.- See Also:
-
SERVICE_UNAVAILABLE_503
public static final int SERVICE_UNAVAILABLE_503Deprecated.- See Also:
-
GATEWAY_TIMEOUT_504
public static final int GATEWAY_TIMEOUT_504Deprecated.- See Also:
-
HTTP_VERSION_NOT_SUPPORTED_505
public static final int HTTP_VERSION_NOT_SUPPORTED_505Deprecated.- See Also:
-
INSUFFICIENT_STORAGE_507
public static final int INSUFFICIENT_STORAGE_507Deprecated.- See Also:
-
LOOP_DETECTED_508
public static final int LOOP_DETECTED_508Deprecated.- See Also:
-
NOT_EXTENDED_510
public static final int NOT_EXTENDED_510Deprecated.- See Also:
-
NETWORK_AUTHENTICATION_REQUIRED_511
public static final int NETWORK_AUTHENTICATION_REQUIRED_511Deprecated.- See Also:
-
MAX_CODE
public static final int MAX_CODEDeprecated.- See Also:
-
-
Constructor Details
-
HttpStatus
public HttpStatus()Deprecated.
-
-
Method Details
-
getCode
Deprecated.Get the HttpStatusCode for a specific code- Parameters:
code
- the code to lookup.- Returns:
- the
HttpStatus
if found, or null if not found.
-
getMessage
Deprecated.Get the status message for a specific code.- Parameters:
code
- the code to look up- Returns:
- the specific message, or the code number itself if code does not match known list.
-
hasNoBody
public static boolean hasNoBody(int status) Deprecated. -
isInformational
public static boolean isInformational(int code) Deprecated.Simple test against an code to determine if it falls into theInformational
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.- Parameters:
code
- the code to test.- Returns:
- true if within range of codes that belongs to
Informational
messages.
-
isSuccess
public static boolean isSuccess(int code) Deprecated.Simple test against an code to determine if it falls into theSuccess
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.- Parameters:
code
- the code to test.- Returns:
- true if within range of codes that belongs to
Success
messages.
-
isRedirection
public static boolean isRedirection(int code) Deprecated.Simple test against an code to determine if it falls into theRedirection
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.- Parameters:
code
- the code to test.- Returns:
- true if within range of codes that belongs to
Redirection
messages.
-
isClientError
public static boolean isClientError(int code) Deprecated.Simple test against an code to determine if it falls into theClient Error
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.- Parameters:
code
- the code to test.- Returns:
- true if within range of codes that belongs to
Client Error
messages.
-
isServerError
public static boolean isServerError(int code) Deprecated.Simple test against an code to determine if it falls into theServer Error
message category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.- Parameters:
code
- the code to test.- Returns:
- true if within range of codes that belongs to
Server Error
messages.
-