Package org.eclipse.jetty.http
Class HttpStatus
- java.lang.Object
-
- org.eclipse.jetty.http.HttpStatus
-
@Deprecated(since="2021-05-27") public class HttpStatus extends java.lang.ObjectDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Http Status Codes
- See Also:
- IANA HTTP Status Code Registry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpStatus.CodeDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static intACCEPTED_202Deprecated.static intBAD_GATEWAY_502Deprecated.static intBAD_REQUEST_400Deprecated.static intCONFLICT_409Deprecated.static intCONTINUE_100Deprecated.static intCREATED_201Deprecated.static intENHANCE_YOUR_CALM_420Deprecated.static intEXPECTATION_FAILED_417Deprecated.static intFAILED_DEPENDENCY_424Deprecated.static intFORBIDDEN_403Deprecated.static intFOUND_302Deprecated.static intGATEWAY_TIMEOUT_504Deprecated.static intGONE_410Deprecated.static intHTTP_VERSION_NOT_SUPPORTED_505Deprecated.static intIM_A_TEAPOT_418Deprecated.static intINSUFFICIENT_STORAGE_507Deprecated.static intINTERNAL_SERVER_ERROR_500Deprecated.static intLENGTH_REQUIRED_411Deprecated.static intLOCKED_423Deprecated.static intLOOP_DETECTED_508Deprecated.static intMAX_CODEDeprecated.static intMETHOD_NOT_ALLOWED_405Deprecated.static intMISDIRECTED_REQUEST_421Deprecated.static intMOVED_PERMANENTLY_301Deprecated.static intMOVED_TEMPORARILY_302Deprecated.static intMULTI_STATUS_207Deprecated.static intMULTIPLE_CHOICES_300Deprecated.static intNETWORK_AUTHENTICATION_REQUIRED_511Deprecated.static intNO_CONTENT_204Deprecated.static intNON_AUTHORITATIVE_INFORMATION_203Deprecated.static intNOT_ACCEPTABLE_406Deprecated.static intNOT_EXTENDED_510Deprecated.static intNOT_FOUND_404Deprecated.static intNOT_IMPLEMENTED_501Deprecated.static intNOT_MODIFIED_304Deprecated.static intOK_200Deprecated.static intPARTIAL_CONTENT_206Deprecated.static intPAYLOAD_TOO_LARGE_413Deprecated.static intPAYMENT_REQUIRED_402Deprecated.static intPERMANENT_REDIRECT_308Deprecated.static intPRECONDITION_FAILED_412Deprecated.static intPRECONDITION_REQUIRED_428Deprecated.static intPROCESSING_102Deprecated.static intPROXY_AUTHENTICATION_REQUIRED_407Deprecated.static intRANGE_NOT_SATISFIABLE_416Deprecated.static intREQUEST_ENTITY_TOO_LARGE_413Deprecated.static intREQUEST_HEADER_FIELDS_TOO_LARGE_431Deprecated.static intREQUEST_TIMEOUT_408Deprecated.static intREQUEST_URI_TOO_LONG_414Deprecated.static intREQUESTED_RANGE_NOT_SATISFIABLE_416Deprecated.static intRESET_CONTENT_205Deprecated.static intSEE_OTHER_303Deprecated.static intSERVICE_UNAVAILABLE_503Deprecated.static intSWITCHING_PROTOCOLS_101Deprecated.static intTEMPORARY_REDIRECT_307Deprecated.static intTOO_MANY_REQUESTS_429Deprecated.static intUNAUTHORIZED_401Deprecated.static intUNAVAILABLE_FOR_LEGAL_REASONS_451Deprecated.static intUNPROCESSABLE_ENTITY_422Deprecated.static intUNSUPPORTED_MEDIA_TYPE_415Deprecated.static intUPGRADE_REQUIRED_426Deprecated.static intURI_TOO_LONG_414Deprecated.static intUSE_PROXY_305Deprecated.
-
Constructor Summary
Constructors Constructor Description HttpStatus()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HttpStatus.CodegetCode(int code)Deprecated.Get the HttpStatusCode for a specific codestatic java.lang.StringgetMessage(int code)Deprecated.Get the status message for a specific code.static booleanhasNoBody(int status)Deprecated.static booleanisClientError(int code)Deprecated.Simple test against an code to determine if it falls into theClient Errormessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.static booleanisInformational(int code)Deprecated.Simple test against an code to determine if it falls into theInformationalmessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.static booleanisRedirection(int code)Deprecated.Simple test against an code to determine if it falls into theRedirectionmessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.static booleanisServerError(int code)Deprecated.Simple test against an code to determine if it falls into theServer Errormessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.static booleanisSuccess(int code)Deprecated.Simple test against an code to determine if it falls into theSuccessmessage category as defined in the RFC 1945 - HTTP/1.0, and RFC 7231 - HTTP/1.1.
-
-
-
Field Detail
-
CONTINUE_100
public static final int CONTINUE_100
Deprecated.- See Also:
- Constant Field Values
-
SWITCHING_PROTOCOLS_101
public static final int SWITCHING_PROTOCOLS_101
Deprecated.- See Also:
- Constant Field Values
-
PROCESSING_102
public static final int PROCESSING_102
Deprecated.- See Also:
- Constant Field Values
-
OK_200
public static final int OK_200
Deprecated.- See Also:
- Constant Field Values
-
CREATED_201
public static final int CREATED_201
Deprecated.- See Also:
- Constant Field Values
-
ACCEPTED_202
public static final int ACCEPTED_202
Deprecated.- See Also:
- Constant Field Values
-
NON_AUTHORITATIVE_INFORMATION_203
public static final int NON_AUTHORITATIVE_INFORMATION_203
Deprecated.- See Also:
- Constant Field Values
-
NO_CONTENT_204
public static final int NO_CONTENT_204
Deprecated.- See Also:
- Constant Field Values
-
RESET_CONTENT_205
public static final int RESET_CONTENT_205
Deprecated.- See Also:
- Constant Field Values
-
PARTIAL_CONTENT_206
public static final int PARTIAL_CONTENT_206
Deprecated.- See Also:
- Constant Field Values
-
MULTI_STATUS_207
public static final int MULTI_STATUS_207
Deprecated.- See Also:
- Constant Field Values
-
MULTIPLE_CHOICES_300
public static final int MULTIPLE_CHOICES_300
Deprecated.- See Also:
- Constant Field Values
-
MOVED_PERMANENTLY_301
public static final int MOVED_PERMANENTLY_301
Deprecated.- See Also:
- Constant Field Values
-
MOVED_TEMPORARILY_302
public static final int MOVED_TEMPORARILY_302
Deprecated.- See Also:
- Constant Field Values
-
FOUND_302
public static final int FOUND_302
Deprecated.- See Also:
- Constant Field Values
-
SEE_OTHER_303
public static final int SEE_OTHER_303
Deprecated.- See Also:
- Constant Field Values
-
NOT_MODIFIED_304
public static final int NOT_MODIFIED_304
Deprecated.- See Also:
- Constant Field Values
-
USE_PROXY_305
public static final int USE_PROXY_305
Deprecated.- See Also:
- Constant Field Values
-
TEMPORARY_REDIRECT_307
public static final int TEMPORARY_REDIRECT_307
Deprecated.- See Also:
- Constant Field Values
-
PERMANENT_REDIRECT_308
public static final int PERMANENT_REDIRECT_308
Deprecated.- See Also:
- Constant Field Values
-
BAD_REQUEST_400
public static final int BAD_REQUEST_400
Deprecated.- See Also:
- Constant Field Values
-
UNAUTHORIZED_401
public static final int UNAUTHORIZED_401
Deprecated.- See Also:
- Constant Field Values
-
PAYMENT_REQUIRED_402
public static final int PAYMENT_REQUIRED_402
Deprecated.- See Also:
- Constant Field Values
-
FORBIDDEN_403
public static final int FORBIDDEN_403
Deprecated.- See Also:
- Constant Field Values
-
NOT_FOUND_404
public static final int NOT_FOUND_404
Deprecated.- See Also:
- Constant Field Values
-
METHOD_NOT_ALLOWED_405
public static final int METHOD_NOT_ALLOWED_405
Deprecated.- See Also:
- Constant Field Values
-
NOT_ACCEPTABLE_406
public static final int NOT_ACCEPTABLE_406
Deprecated.- See Also:
- Constant Field Values
-
PROXY_AUTHENTICATION_REQUIRED_407
public static final int PROXY_AUTHENTICATION_REQUIRED_407
Deprecated.- See Also:
- Constant Field Values
-
REQUEST_TIMEOUT_408
public static final int REQUEST_TIMEOUT_408
Deprecated.- See Also:
- Constant Field Values
-
CONFLICT_409
public static final int CONFLICT_409
Deprecated.- See Also:
- Constant Field Values
-
GONE_410
public static final int GONE_410
Deprecated.- See Also:
- Constant Field Values
-
LENGTH_REQUIRED_411
public static final int LENGTH_REQUIRED_411
Deprecated.- See Also:
- Constant Field Values
-
PRECONDITION_FAILED_412
public static final int PRECONDITION_FAILED_412
Deprecated.- See Also:
- Constant Field Values
-
REQUEST_ENTITY_TOO_LARGE_413
@Deprecated public static final int REQUEST_ENTITY_TOO_LARGE_413
Deprecated.- See Also:
- Constant Field Values
-
PAYLOAD_TOO_LARGE_413
public static final int PAYLOAD_TOO_LARGE_413
Deprecated.- See Also:
- Constant Field Values
-
REQUEST_URI_TOO_LONG_414
@Deprecated public static final int REQUEST_URI_TOO_LONG_414
Deprecated.- See Also:
- Constant Field Values
-
URI_TOO_LONG_414
public static final int URI_TOO_LONG_414
Deprecated.- See Also:
- Constant Field Values
-
UNSUPPORTED_MEDIA_TYPE_415
public static final int UNSUPPORTED_MEDIA_TYPE_415
Deprecated.- See Also:
- Constant Field Values
-
REQUESTED_RANGE_NOT_SATISFIABLE_416
@Deprecated public static final int REQUESTED_RANGE_NOT_SATISFIABLE_416
Deprecated.- See Also:
- Constant Field Values
-
RANGE_NOT_SATISFIABLE_416
public static final int RANGE_NOT_SATISFIABLE_416
Deprecated.- See Also:
- Constant Field Values
-
EXPECTATION_FAILED_417
public static final int EXPECTATION_FAILED_417
Deprecated.- See Also:
- Constant Field Values
-
IM_A_TEAPOT_418
public static final int IM_A_TEAPOT_418
Deprecated.- See Also:
- Constant Field Values
-
ENHANCE_YOUR_CALM_420
public static final int ENHANCE_YOUR_CALM_420
Deprecated.- See Also:
- Constant Field Values
-
MISDIRECTED_REQUEST_421
public static final int MISDIRECTED_REQUEST_421
Deprecated.- See Also:
- Constant Field Values
-
UNPROCESSABLE_ENTITY_422
public static final int UNPROCESSABLE_ENTITY_422
Deprecated.- See Also:
- Constant Field Values
-
LOCKED_423
public static final int LOCKED_423
Deprecated.- See Also:
- Constant Field Values
-
FAILED_DEPENDENCY_424
public static final int FAILED_DEPENDENCY_424
Deprecated.- See Also:
- Constant Field Values
-
UPGRADE_REQUIRED_426
public static final int UPGRADE_REQUIRED_426
Deprecated.- See Also:
- Constant Field Values
-
PRECONDITION_REQUIRED_428
public static final int PRECONDITION_REQUIRED_428
Deprecated.- See Also:
- Constant Field Values
-
TOO_MANY_REQUESTS_429
public static final int TOO_MANY_REQUESTS_429
Deprecated.- See Also:
- Constant Field Values
-
REQUEST_HEADER_FIELDS_TOO_LARGE_431
public static final int REQUEST_HEADER_FIELDS_TOO_LARGE_431
Deprecated.- See Also:
- Constant Field Values
-
UNAVAILABLE_FOR_LEGAL_REASONS_451
public static final int UNAVAILABLE_FOR_LEGAL_REASONS_451
Deprecated.- See Also:
- Constant Field Values
-
INTERNAL_SERVER_ERROR_500
public static final int INTERNAL_SERVER_ERROR_500
Deprecated.- See Also:
- Constant Field Values
-
NOT_IMPLEMENTED_501
public static final int NOT_IMPLEMENTED_501
Deprecated.- See Also:
- Constant Field Values
-
BAD_GATEWAY_502
public static final int BAD_GATEWAY_502
Deprecated.- See Also:
- Constant Field Values
-
SERVICE_UNAVAILABLE_503
public static final int SERVICE_UNAVAILABLE_503
Deprecated.- See Also:
- Constant Field Values
-
GATEWAY_TIMEOUT_504
public static final int GATEWAY_TIMEOUT_504
Deprecated.- See Also:
- Constant Field Values
-
HTTP_VERSION_NOT_SUPPORTED_505
public static final int HTTP_VERSION_NOT_SUPPORTED_505
Deprecated.- See Also:
- Constant Field Values
-
INSUFFICIENT_STORAGE_507
public static final int INSUFFICIENT_STORAGE_507
Deprecated.- See Also:
- Constant Field Values
-
LOOP_DETECTED_508
public static final int LOOP_DETECTED_508
Deprecated.- See Also:
- Constant Field Values
-
NOT_EXTENDED_510
public static final int NOT_EXTENDED_510
Deprecated.- See Also:
- Constant Field Values
-
NETWORK_AUTHENTICATION_REQUIRED_511
public static final int NETWORK_AUTHENTICATION_REQUIRED_511
Deprecated.- See Also:
- Constant Field Values
-
MAX_CODE
public static final int MAX_CODE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public static HttpStatus.Code getCode(int code)
Deprecated.Get the HttpStatusCode for a specific code- Parameters:
code- the code to lookup.- Returns:
- the
HttpStatusif found, or null if not found.
-
getMessage
public static java.lang.String getMessage(int code)
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 theInformationalmessage 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
Informationalmessages.
-
isSuccess
public static boolean isSuccess(int code)
Deprecated.Simple test against an code to determine if it falls into theSuccessmessage 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
Successmessages.
-
isRedirection
public static boolean isRedirection(int code)
Deprecated.Simple test against an code to determine if it falls into theRedirectionmessage 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
Redirectionmessages.
-
isClientError
public static boolean isClientError(int code)
Deprecated.Simple test against an code to determine if it falls into theClient Errormessage 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 Errormessages.
-
isServerError
public static boolean isServerError(int code)
Deprecated.Simple test against an code to determine if it falls into theServer Errormessage 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 Errormessages.
-
-