Package io.envoyproxy.envoy.type.v3
Enum StatusCode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StatusCode>,java.lang.constant.Constable
HTTP response codes supported in Envoy. For more details: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtmlProtobuf enum
envoy.type.v3.StatusCode-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccepted - ``202`` status code.AlreadyReported - ``208`` status code.BadGateway - ``502`` status code.BadRequest - ``400`` status code.Conflict - ``409`` status code.Continue - ``100`` status code.Created - ``201`` status code.Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.ExpectationFailed - ``417`` status code.FailedDependency - ``424`` status code.Forbidden - ``403`` status code.Found - ``302`` status code.GatewayTimeout - ``504`` status code.Gone - ``410`` status code.HTTPVersionNotSupported - ``505`` status code.IMUsed - ``226`` status code.InsufficientStorage - ``507`` status code.InternalServerError - ``500`` status code.LengthRequired - ``411`` status code.Locked - ``423`` status code.LoopDetected - ``508`` status code.MethodNotAllowed - ``405`` status code.MisdirectedRequest - ``421`` status code.MovedPermanently - ``301`` status code.MultipleChoices - ``300`` status code.MultiStatus - ``207`` status code.NetworkAuthenticationRequired - ``511`` status code.NoContent - ``204`` status code.NonAuthoritativeInformation - ``203`` status code.NotAcceptable - ``406`` status code.NotExtended - ``510`` status code.NotFound - ``404`` status code.NotImplemented - ``501`` status code.NotModified - ``304`` status code.OK - ``200`` status code.PartialContent - ``206`` status code.PayloadTooLarge - ``413`` status code.PaymentRequired - ``402`` status code.PermanentRedirect - ``308`` status code.PreconditionFailed - ``412`` status code.PreconditionRequired - ``428`` status code.ProxyAuthenticationRequired - ``407`` status code.RangeNotSatisfiable - ``416`` status code.RequestHeaderFieldsTooLarge - ``431`` status code.RequestTimeout - ``408`` status code.ResetContent - ``205`` status code.SeeOther - ``303`` status code.ServiceUnavailable - ``503`` status code.TemporaryRedirect - ``307`` status code.TooManyRequests - ``429`` status code.Unauthorized - ``401`` status code.UnprocessableEntity - ``422`` status code.UnsupportedMediaType - ``415`` status code.UpgradeRequired - ``426`` status code.URITooLong - ``414`` status code.UseProxy - ``305`` status code.VariantAlsoNegotiates - ``506`` status code. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAccepted - ``202`` status code.static final intAlreadyReported - ``208`` status code.static final intBadGateway - ``502`` status code.static final intBadRequest - ``400`` status code.static final intConflict - ``409`` status code.static final intContinue - ``100`` status code.static final intCreated - ``201`` status code.static final intEmpty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.static final intExpectationFailed - ``417`` status code.static final intFailedDependency - ``424`` status code.static final intForbidden - ``403`` status code.static final intFound - ``302`` status code.static final intGatewayTimeout - ``504`` status code.static final intGone - ``410`` status code.static final intHTTPVersionNotSupported - ``505`` status code.static final intIMUsed - ``226`` status code.static final intInsufficientStorage - ``507`` status code.static final intInternalServerError - ``500`` status code.static final intLengthRequired - ``411`` status code.static final intLocked - ``423`` status code.static final intLoopDetected - ``508`` status code.static final intMethodNotAllowed - ``405`` status code.static final intMisdirectedRequest - ``421`` status code.static final intMovedPermanently - ``301`` status code.static final intMultipleChoices - ``300`` status code.static final intMultiStatus - ``207`` status code.static final intNetworkAuthenticationRequired - ``511`` status code.static final intNoContent - ``204`` status code.static final intNonAuthoritativeInformation - ``203`` status code.static final intNotAcceptable - ``406`` status code.static final intNotExtended - ``510`` status code.static final intNotFound - ``404`` status code.static final intNotImplemented - ``501`` status code.static final intNotModified - ``304`` status code.static final intOK - ``200`` status code.static final intPartialContent - ``206`` status code.static final intPayloadTooLarge - ``413`` status code.static final intPaymentRequired - ``402`` status code.static final intPermanentRedirect - ``308`` status code.static final intPreconditionFailed - ``412`` status code.static final intPreconditionRequired - ``428`` status code.static final intProxyAuthenticationRequired - ``407`` status code.static final intRangeNotSatisfiable - ``416`` status code.static final intRequestHeaderFieldsTooLarge - ``431`` status code.static final intRequestTimeout - ``408`` status code.static final intResetContent - ``205`` status code.static final intSeeOther - ``303`` status code.static final intServiceUnavailable - ``503`` status code.static final intTemporaryRedirect - ``307`` status code.static final intTooManyRequests - ``429`` status code.static final intUnauthorized - ``401`` status code.static final intUnprocessableEntity - ``422`` status code.static final intUnsupportedMediaType - ``415`` status code.static final intUpgradeRequired - ``426`` status code.static final intURITooLong - ``414`` status code.static final intUseProxy - ``305`` status code.static final intVariantAlsoNegotiates - ``506`` status code. -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusCodeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<StatusCode>static StatusCodevalueOf(int value) Deprecated.static StatusCodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static StatusCodeReturns the enum constant of this type with the specified name.static StatusCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Empty
Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.
Empty = 0; -
Continue
Continue - ``100`` status code.
Continue = 100; -
OK
OK - ``200`` status code.
OK = 200; -
Created
Created - ``201`` status code.
Created = 201; -
Accepted
Accepted - ``202`` status code.
Accepted = 202; -
NonAuthoritativeInformation
NonAuthoritativeInformation - ``203`` status code.
NonAuthoritativeInformation = 203; -
NoContent
NoContent - ``204`` status code.
NoContent = 204; -
ResetContent
ResetContent - ``205`` status code.
ResetContent = 205; -
PartialContent
PartialContent - ``206`` status code.
PartialContent = 206; -
MultiStatus
MultiStatus - ``207`` status code.
MultiStatus = 207; -
AlreadyReported
AlreadyReported - ``208`` status code.
AlreadyReported = 208; -
IMUsed
IMUsed - ``226`` status code.
IMUsed = 226; -
MultipleChoices
MultipleChoices - ``300`` status code.
MultipleChoices = 300; -
MovedPermanently
MovedPermanently - ``301`` status code.
MovedPermanently = 301; -
Found
Found - ``302`` status code.
Found = 302; -
SeeOther
SeeOther - ``303`` status code.
SeeOther = 303; -
NotModified
NotModified - ``304`` status code.
NotModified = 304; -
UseProxy
UseProxy - ``305`` status code.
UseProxy = 305; -
TemporaryRedirect
TemporaryRedirect - ``307`` status code.
TemporaryRedirect = 307; -
PermanentRedirect
PermanentRedirect - ``308`` status code.
PermanentRedirect = 308; -
BadRequest
BadRequest - ``400`` status code.
BadRequest = 400; -
Unauthorized
Unauthorized - ``401`` status code.
Unauthorized = 401; -
PaymentRequired
PaymentRequired - ``402`` status code.
PaymentRequired = 402; -
Forbidden
Forbidden - ``403`` status code.
Forbidden = 403; -
NotFound
NotFound - ``404`` status code.
NotFound = 404; -
MethodNotAllowed
MethodNotAllowed - ``405`` status code.
MethodNotAllowed = 405; -
NotAcceptable
NotAcceptable - ``406`` status code.
NotAcceptable = 406; -
ProxyAuthenticationRequired
ProxyAuthenticationRequired - ``407`` status code.
ProxyAuthenticationRequired = 407; -
RequestTimeout
RequestTimeout - ``408`` status code.
RequestTimeout = 408; -
Conflict
Conflict - ``409`` status code.
Conflict = 409; -
Gone
Gone - ``410`` status code.
Gone = 410; -
LengthRequired
LengthRequired - ``411`` status code.
LengthRequired = 411; -
PreconditionFailed
PreconditionFailed - ``412`` status code.
PreconditionFailed = 412; -
PayloadTooLarge
PayloadTooLarge - ``413`` status code.
PayloadTooLarge = 413; -
URITooLong
URITooLong - ``414`` status code.
URITooLong = 414; -
UnsupportedMediaType
UnsupportedMediaType - ``415`` status code.
UnsupportedMediaType = 415; -
RangeNotSatisfiable
RangeNotSatisfiable - ``416`` status code.
RangeNotSatisfiable = 416; -
ExpectationFailed
ExpectationFailed - ``417`` status code.
ExpectationFailed = 417; -
MisdirectedRequest
MisdirectedRequest - ``421`` status code.
MisdirectedRequest = 421; -
UnprocessableEntity
UnprocessableEntity - ``422`` status code.
UnprocessableEntity = 422; -
Locked
Locked - ``423`` status code.
Locked = 423; -
FailedDependency
FailedDependency - ``424`` status code.
FailedDependency = 424; -
UpgradeRequired
UpgradeRequired - ``426`` status code.
UpgradeRequired = 426; -
PreconditionRequired
PreconditionRequired - ``428`` status code.
PreconditionRequired = 428; -
TooManyRequests
TooManyRequests - ``429`` status code.
TooManyRequests = 429; -
RequestHeaderFieldsTooLarge
RequestHeaderFieldsTooLarge - ``431`` status code.
RequestHeaderFieldsTooLarge = 431; -
InternalServerError
InternalServerError - ``500`` status code.
InternalServerError = 500; -
NotImplemented
NotImplemented - ``501`` status code.
NotImplemented = 501; -
BadGateway
BadGateway - ``502`` status code.
BadGateway = 502; -
GatewayTimeout
GatewayTimeout - ``504`` status code.
GatewayTimeout = 504; -
HTTPVersionNotSupported
HTTPVersionNotSupported - ``505`` status code.
HTTPVersionNotSupported = 505; -
VariantAlsoNegotiates
VariantAlsoNegotiates - ``506`` status code.
VariantAlsoNegotiates = 506; -
InsufficientStorage
InsufficientStorage - ``507`` status code.
InsufficientStorage = 507; -
LoopDetected
LoopDetected - ``508`` status code.
LoopDetected = 508; -
NotExtended
NotExtended - ``510`` status code.
NotExtended = 510; -
NetworkAuthenticationRequired
NetworkAuthenticationRequired - ``511`` status code.
NetworkAuthenticationRequired = 511; -
UNRECOGNIZED
-
-
Field Details
-
Empty_VALUE
public static final int Empty_VALUEEmpty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.
Empty = 0;- See Also:
-
Continue_VALUE
public static final int Continue_VALUEContinue - ``100`` status code.
Continue = 100;- See Also:
-
OK_VALUE
public static final int OK_VALUEOK - ``200`` status code.
OK = 200;- See Also:
-
Created_VALUE
public static final int Created_VALUECreated - ``201`` status code.
Created = 201;- See Also:
-
Accepted_VALUE
public static final int Accepted_VALUEAccepted - ``202`` status code.
Accepted = 202;- See Also:
-
NonAuthoritativeInformation_VALUE
public static final int NonAuthoritativeInformation_VALUENonAuthoritativeInformation - ``203`` status code.
NonAuthoritativeInformation = 203;- See Also:
-
NoContent_VALUE
public static final int NoContent_VALUENoContent - ``204`` status code.
NoContent = 204;- See Also:
-
ResetContent_VALUE
public static final int ResetContent_VALUEResetContent - ``205`` status code.
ResetContent = 205;- See Also:
-
PartialContent_VALUE
public static final int PartialContent_VALUEPartialContent - ``206`` status code.
PartialContent = 206;- See Also:
-
MultiStatus_VALUE
public static final int MultiStatus_VALUEMultiStatus - ``207`` status code.
MultiStatus = 207;- See Also:
-
AlreadyReported_VALUE
public static final int AlreadyReported_VALUEAlreadyReported - ``208`` status code.
AlreadyReported = 208;- See Also:
-
IMUsed_VALUE
public static final int IMUsed_VALUEIMUsed - ``226`` status code.
IMUsed = 226;- See Also:
-
MultipleChoices_VALUE
public static final int MultipleChoices_VALUEMultipleChoices - ``300`` status code.
MultipleChoices = 300;- See Also:
-
MovedPermanently_VALUE
public static final int MovedPermanently_VALUEMovedPermanently - ``301`` status code.
MovedPermanently = 301;- See Also:
-
Found_VALUE
public static final int Found_VALUEFound - ``302`` status code.
Found = 302;- See Also:
-
SeeOther_VALUE
public static final int SeeOther_VALUESeeOther - ``303`` status code.
SeeOther = 303;- See Also:
-
NotModified_VALUE
public static final int NotModified_VALUENotModified - ``304`` status code.
NotModified = 304;- See Also:
-
UseProxy_VALUE
public static final int UseProxy_VALUEUseProxy - ``305`` status code.
UseProxy = 305;- See Also:
-
TemporaryRedirect_VALUE
public static final int TemporaryRedirect_VALUETemporaryRedirect - ``307`` status code.
TemporaryRedirect = 307;- See Also:
-
PermanentRedirect_VALUE
public static final int PermanentRedirect_VALUEPermanentRedirect - ``308`` status code.
PermanentRedirect = 308;- See Also:
-
BadRequest_VALUE
public static final int BadRequest_VALUEBadRequest - ``400`` status code.
BadRequest = 400;- See Also:
-
Unauthorized_VALUE
public static final int Unauthorized_VALUEUnauthorized - ``401`` status code.
Unauthorized = 401;- See Also:
-
PaymentRequired_VALUE
public static final int PaymentRequired_VALUEPaymentRequired - ``402`` status code.
PaymentRequired = 402;- See Also:
-
Forbidden_VALUE
public static final int Forbidden_VALUEForbidden - ``403`` status code.
Forbidden = 403;- See Also:
-
NotFound_VALUE
public static final int NotFound_VALUENotFound - ``404`` status code.
NotFound = 404;- See Also:
-
MethodNotAllowed_VALUE
public static final int MethodNotAllowed_VALUEMethodNotAllowed - ``405`` status code.
MethodNotAllowed = 405;- See Also:
-
NotAcceptable_VALUE
public static final int NotAcceptable_VALUENotAcceptable - ``406`` status code.
NotAcceptable = 406;- See Also:
-
ProxyAuthenticationRequired_VALUE
public static final int ProxyAuthenticationRequired_VALUEProxyAuthenticationRequired - ``407`` status code.
ProxyAuthenticationRequired = 407;- See Also:
-
RequestTimeout_VALUE
public static final int RequestTimeout_VALUERequestTimeout - ``408`` status code.
RequestTimeout = 408;- See Also:
-
Conflict_VALUE
public static final int Conflict_VALUEConflict - ``409`` status code.
Conflict = 409;- See Also:
-
Gone_VALUE
public static final int Gone_VALUEGone - ``410`` status code.
Gone = 410;- See Also:
-
LengthRequired_VALUE
public static final int LengthRequired_VALUELengthRequired - ``411`` status code.
LengthRequired = 411;- See Also:
-
PreconditionFailed_VALUE
public static final int PreconditionFailed_VALUEPreconditionFailed - ``412`` status code.
PreconditionFailed = 412;- See Also:
-
PayloadTooLarge_VALUE
public static final int PayloadTooLarge_VALUEPayloadTooLarge - ``413`` status code.
PayloadTooLarge = 413;- See Also:
-
URITooLong_VALUE
public static final int URITooLong_VALUEURITooLong - ``414`` status code.
URITooLong = 414;- See Also:
-
UnsupportedMediaType_VALUE
public static final int UnsupportedMediaType_VALUEUnsupportedMediaType - ``415`` status code.
UnsupportedMediaType = 415;- See Also:
-
RangeNotSatisfiable_VALUE
public static final int RangeNotSatisfiable_VALUERangeNotSatisfiable - ``416`` status code.
RangeNotSatisfiable = 416;- See Also:
-
ExpectationFailed_VALUE
public static final int ExpectationFailed_VALUEExpectationFailed - ``417`` status code.
ExpectationFailed = 417;- See Also:
-
MisdirectedRequest_VALUE
public static final int MisdirectedRequest_VALUEMisdirectedRequest - ``421`` status code.
MisdirectedRequest = 421;- See Also:
-
UnprocessableEntity_VALUE
public static final int UnprocessableEntity_VALUEUnprocessableEntity - ``422`` status code.
UnprocessableEntity = 422;- See Also:
-
Locked_VALUE
public static final int Locked_VALUELocked - ``423`` status code.
Locked = 423;- See Also:
-
FailedDependency_VALUE
public static final int FailedDependency_VALUEFailedDependency - ``424`` status code.
FailedDependency = 424;- See Also:
-
UpgradeRequired_VALUE
public static final int UpgradeRequired_VALUEUpgradeRequired - ``426`` status code.
UpgradeRequired = 426;- See Also:
-
PreconditionRequired_VALUE
public static final int PreconditionRequired_VALUEPreconditionRequired - ``428`` status code.
PreconditionRequired = 428;- See Also:
-
TooManyRequests_VALUE
public static final int TooManyRequests_VALUETooManyRequests - ``429`` status code.
TooManyRequests = 429;- See Also:
-
RequestHeaderFieldsTooLarge_VALUE
public static final int RequestHeaderFieldsTooLarge_VALUERequestHeaderFieldsTooLarge - ``431`` status code.
RequestHeaderFieldsTooLarge = 431;- See Also:
-
InternalServerError_VALUE
public static final int InternalServerError_VALUEInternalServerError - ``500`` status code.
InternalServerError = 500;- See Also:
-
NotImplemented_VALUE
public static final int NotImplemented_VALUENotImplemented - ``501`` status code.
NotImplemented = 501;- See Also:
-
BadGateway_VALUE
public static final int BadGateway_VALUEBadGateway - ``502`` status code.
BadGateway = 502;- See Also:
-
GatewayTimeout_VALUE
public static final int GatewayTimeout_VALUEGatewayTimeout - ``504`` status code.
GatewayTimeout = 504;- See Also:
-
HTTPVersionNotSupported_VALUE
public static final int HTTPVersionNotSupported_VALUEHTTPVersionNotSupported - ``505`` status code.
HTTPVersionNotSupported = 505;- See Also:
-
VariantAlsoNegotiates_VALUE
public static final int VariantAlsoNegotiates_VALUEVariantAlsoNegotiates - ``506`` status code.
VariantAlsoNegotiates = 506;- See Also:
-
InsufficientStorage_VALUE
public static final int InsufficientStorage_VALUEInsufficientStorage - ``507`` status code.
InsufficientStorage = 507;- See Also:
-
LoopDetected_VALUE
public static final int LoopDetected_VALUELoopDetected - ``508`` status code.
LoopDetected = 508;- See Also:
-
NotExtended_VALUE
public static final int NotExtended_VALUENotExtended - ``510`` status code.
NotExtended = 510;- See Also:
-
NetworkAuthenticationRequired_VALUE
public static final int NetworkAuthenticationRequired_VALUENetworkAuthenticationRequired - ``511`` status code.
NetworkAuthenticationRequired = 511;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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:
desc- 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
-