Package io.envoyproxy.envoy.type.v3
Enum StatusCode
- java.lang.Object
-
- java.lang.Enum<StatusCode>
-
- io.envoyproxy.envoy.type.v3.StatusCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StatusCode>
public enum StatusCode extends Enum<StatusCode> implements com.google.protobuf.ProtocolMessageEnum
HTTP response codes supported in Envoy. For more details: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
Protobuf enumenvoy.type.v3.StatusCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AcceptedAccepted = 202;AlreadyReportedAlreadyReported = 208;BadGatewayBadGateway = 502;BadRequestBadRequest = 400;ConflictConflict = 409;ContinueContinue = 100;CreatedCreated = 201;EmptyEmpty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.ExpectationFailedExpectationFailed = 417;FailedDependencyFailedDependency = 424;ForbiddenForbidden = 403;FoundFound = 302;GatewayTimeoutGatewayTimeout = 504;GoneGone = 410;HTTPVersionNotSupportedHTTPVersionNotSupported = 505;IMUsedIMUsed = 226;InsufficientStorageInsufficientStorage = 507;InternalServerErrorInternalServerError = 500;LengthRequiredLengthRequired = 411;LockedLocked = 423;LoopDetectedLoopDetected = 508;MethodNotAllowedMethodNotAllowed = 405;MisdirectedRequestMisdirectedRequest = 421;MovedPermanentlyMovedPermanently = 301;MultipleChoicesMultipleChoices = 300;MultiStatusMultiStatus = 207;NetworkAuthenticationRequiredNetworkAuthenticationRequired = 511;NoContentNoContent = 204;NonAuthoritativeInformationNonAuthoritativeInformation = 203;NotAcceptableNotAcceptable = 406;NotExtendedNotExtended = 510;NotFoundNotFound = 404;NotImplementedNotImplemented = 501;NotModifiedNotModified = 304;OKOK = 200;PartialContentPartialContent = 206;PayloadTooLargePayloadTooLarge = 413;PaymentRequiredPaymentRequired = 402;PermanentRedirectPermanentRedirect = 308;PreconditionFailedPreconditionFailed = 412;PreconditionRequiredPreconditionRequired = 428;ProxyAuthenticationRequiredProxyAuthenticationRequired = 407;RangeNotSatisfiableRangeNotSatisfiable = 416;RequestHeaderFieldsTooLargeRequestHeaderFieldsTooLarge = 431;RequestTimeoutRequestTimeout = 408;ResetContentResetContent = 205;SeeOtherSeeOther = 303;ServiceUnavailableServiceUnavailable = 503;TemporaryRedirectTemporaryRedirect = 307;TooManyRequestsTooManyRequests = 429;UnauthorizedUnauthorized = 401;UnprocessableEntityUnprocessableEntity = 422;UNRECOGNIZEDUnsupportedMediaTypeUnsupportedMediaType = 415;UpgradeRequiredUpgradeRequired = 426;URITooLongURITooLong = 414;UseProxyUseProxy = 305;VariantAlsoNegotiatesVariantAlsoNegotiates = 506;
-
Field Summary
Fields Modifier and Type Field Description static intAccepted_VALUEAccepted = 202;static intAlreadyReported_VALUEAlreadyReported = 208;static intBadGateway_VALUEBadGateway = 502;static intBadRequest_VALUEBadRequest = 400;static intConflict_VALUEConflict = 409;static intContinue_VALUEContinue = 100;static intCreated_VALUECreated = 201;static intEmpty_VALUEEmpty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.static intExpectationFailed_VALUEExpectationFailed = 417;static intFailedDependency_VALUEFailedDependency = 424;static intForbidden_VALUEForbidden = 403;static intFound_VALUEFound = 302;static intGatewayTimeout_VALUEGatewayTimeout = 504;static intGone_VALUEGone = 410;static intHTTPVersionNotSupported_VALUEHTTPVersionNotSupported = 505;static intIMUsed_VALUEIMUsed = 226;static intInsufficientStorage_VALUEInsufficientStorage = 507;static intInternalServerError_VALUEInternalServerError = 500;static intLengthRequired_VALUELengthRequired = 411;static intLocked_VALUELocked = 423;static intLoopDetected_VALUELoopDetected = 508;static intMethodNotAllowed_VALUEMethodNotAllowed = 405;static intMisdirectedRequest_VALUEMisdirectedRequest = 421;static intMovedPermanently_VALUEMovedPermanently = 301;static intMultipleChoices_VALUEMultipleChoices = 300;static intMultiStatus_VALUEMultiStatus = 207;static intNetworkAuthenticationRequired_VALUENetworkAuthenticationRequired = 511;static intNoContent_VALUENoContent = 204;static intNonAuthoritativeInformation_VALUENonAuthoritativeInformation = 203;static intNotAcceptable_VALUENotAcceptable = 406;static intNotExtended_VALUENotExtended = 510;static intNotFound_VALUENotFound = 404;static intNotImplemented_VALUENotImplemented = 501;static intNotModified_VALUENotModified = 304;static intOK_VALUEOK = 200;static intPartialContent_VALUEPartialContent = 206;static intPayloadTooLarge_VALUEPayloadTooLarge = 413;static intPaymentRequired_VALUEPaymentRequired = 402;static intPermanentRedirect_VALUEPermanentRedirect = 308;static intPreconditionFailed_VALUEPreconditionFailed = 412;static intPreconditionRequired_VALUEPreconditionRequired = 428;static intProxyAuthenticationRequired_VALUEProxyAuthenticationRequired = 407;static intRangeNotSatisfiable_VALUERangeNotSatisfiable = 416;static intRequestHeaderFieldsTooLarge_VALUERequestHeaderFieldsTooLarge = 431;static intRequestTimeout_VALUERequestTimeout = 408;static intResetContent_VALUEResetContent = 205;static intSeeOther_VALUESeeOther = 303;static intServiceUnavailable_VALUEServiceUnavailable = 503;static intTemporaryRedirect_VALUETemporaryRedirect = 307;static intTooManyRequests_VALUETooManyRequests = 429;static intUnauthorized_VALUEUnauthorized = 401;static intUnprocessableEntity_VALUEUnprocessableEntity = 422;static intUnsupportedMediaType_VALUEUnsupportedMediaType = 415;static intUpgradeRequired_VALUEUpgradeRequired = 426;static intURITooLong_VALUEURITooLong = 414;static intUseProxy_VALUEUseProxy = 305;static intVariantAlsoNegotiates_VALUEVariantAlsoNegotiates = 506;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StatusCodeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<StatusCode>internalGetValueMap()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 StatusCodevalueOf(String name)Returns 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 Detail
-
Empty
public static final StatusCode Empty
Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.
Empty = 0;
-
Continue
public static final StatusCode Continue
Continue = 100;
-
OK
public static final StatusCode OK
OK = 200;
-
Created
public static final StatusCode Created
Created = 201;
-
Accepted
public static final StatusCode Accepted
Accepted = 202;
-
NonAuthoritativeInformation
public static final StatusCode NonAuthoritativeInformation
NonAuthoritativeInformation = 203;
-
NoContent
public static final StatusCode NoContent
NoContent = 204;
-
ResetContent
public static final StatusCode ResetContent
ResetContent = 205;
-
PartialContent
public static final StatusCode PartialContent
PartialContent = 206;
-
MultiStatus
public static final StatusCode MultiStatus
MultiStatus = 207;
-
AlreadyReported
public static final StatusCode AlreadyReported
AlreadyReported = 208;
-
IMUsed
public static final StatusCode IMUsed
IMUsed = 226;
-
MultipleChoices
public static final StatusCode MultipleChoices
MultipleChoices = 300;
-
MovedPermanently
public static final StatusCode MovedPermanently
MovedPermanently = 301;
-
Found
public static final StatusCode Found
Found = 302;
-
SeeOther
public static final StatusCode SeeOther
SeeOther = 303;
-
NotModified
public static final StatusCode NotModified
NotModified = 304;
-
UseProxy
public static final StatusCode UseProxy
UseProxy = 305;
-
TemporaryRedirect
public static final StatusCode TemporaryRedirect
TemporaryRedirect = 307;
-
PermanentRedirect
public static final StatusCode PermanentRedirect
PermanentRedirect = 308;
-
BadRequest
public static final StatusCode BadRequest
BadRequest = 400;
-
Unauthorized
public static final StatusCode Unauthorized
Unauthorized = 401;
-
PaymentRequired
public static final StatusCode PaymentRequired
PaymentRequired = 402;
-
Forbidden
public static final StatusCode Forbidden
Forbidden = 403;
-
NotFound
public static final StatusCode NotFound
NotFound = 404;
-
MethodNotAllowed
public static final StatusCode MethodNotAllowed
MethodNotAllowed = 405;
-
NotAcceptable
public static final StatusCode NotAcceptable
NotAcceptable = 406;
-
ProxyAuthenticationRequired
public static final StatusCode ProxyAuthenticationRequired
ProxyAuthenticationRequired = 407;
-
RequestTimeout
public static final StatusCode RequestTimeout
RequestTimeout = 408;
-
Conflict
public static final StatusCode Conflict
Conflict = 409;
-
Gone
public static final StatusCode Gone
Gone = 410;
-
LengthRequired
public static final StatusCode LengthRequired
LengthRequired = 411;
-
PreconditionFailed
public static final StatusCode PreconditionFailed
PreconditionFailed = 412;
-
PayloadTooLarge
public static final StatusCode PayloadTooLarge
PayloadTooLarge = 413;
-
URITooLong
public static final StatusCode URITooLong
URITooLong = 414;
-
UnsupportedMediaType
public static final StatusCode UnsupportedMediaType
UnsupportedMediaType = 415;
-
RangeNotSatisfiable
public static final StatusCode RangeNotSatisfiable
RangeNotSatisfiable = 416;
-
ExpectationFailed
public static final StatusCode ExpectationFailed
ExpectationFailed = 417;
-
MisdirectedRequest
public static final StatusCode MisdirectedRequest
MisdirectedRequest = 421;
-
UnprocessableEntity
public static final StatusCode UnprocessableEntity
UnprocessableEntity = 422;
-
Locked
public static final StatusCode Locked
Locked = 423;
-
FailedDependency
public static final StatusCode FailedDependency
FailedDependency = 424;
-
UpgradeRequired
public static final StatusCode UpgradeRequired
UpgradeRequired = 426;
-
PreconditionRequired
public static final StatusCode PreconditionRequired
PreconditionRequired = 428;
-
TooManyRequests
public static final StatusCode TooManyRequests
TooManyRequests = 429;
-
RequestHeaderFieldsTooLarge
public static final StatusCode RequestHeaderFieldsTooLarge
RequestHeaderFieldsTooLarge = 431;
-
InternalServerError
public static final StatusCode InternalServerError
InternalServerError = 500;
-
NotImplemented
public static final StatusCode NotImplemented
NotImplemented = 501;
-
BadGateway
public static final StatusCode BadGateway
BadGateway = 502;
-
ServiceUnavailable
public static final StatusCode ServiceUnavailable
ServiceUnavailable = 503;
-
GatewayTimeout
public static final StatusCode GatewayTimeout
GatewayTimeout = 504;
-
HTTPVersionNotSupported
public static final StatusCode HTTPVersionNotSupported
HTTPVersionNotSupported = 505;
-
VariantAlsoNegotiates
public static final StatusCode VariantAlsoNegotiates
VariantAlsoNegotiates = 506;
-
InsufficientStorage
public static final StatusCode InsufficientStorage
InsufficientStorage = 507;
-
LoopDetected
public static final StatusCode LoopDetected
LoopDetected = 508;
-
NotExtended
public static final StatusCode NotExtended
NotExtended = 510;
-
NetworkAuthenticationRequired
public static final StatusCode NetworkAuthenticationRequired
NetworkAuthenticationRequired = 511;
-
UNRECOGNIZED
public static final StatusCode UNRECOGNIZED
-
-
Field Detail
-
Empty_VALUE
public static final int Empty_VALUE
Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.
Empty = 0;- See Also:
- Constant Field Values
-
Continue_VALUE
public static final int Continue_VALUE
Continue = 100;- See Also:
- Constant Field Values
-
OK_VALUE
public static final int OK_VALUE
OK = 200;- See Also:
- Constant Field Values
-
Created_VALUE
public static final int Created_VALUE
Created = 201;- See Also:
- Constant Field Values
-
Accepted_VALUE
public static final int Accepted_VALUE
Accepted = 202;- See Also:
- Constant Field Values
-
NonAuthoritativeInformation_VALUE
public static final int NonAuthoritativeInformation_VALUE
NonAuthoritativeInformation = 203;- See Also:
- Constant Field Values
-
NoContent_VALUE
public static final int NoContent_VALUE
NoContent = 204;- See Also:
- Constant Field Values
-
ResetContent_VALUE
public static final int ResetContent_VALUE
ResetContent = 205;- See Also:
- Constant Field Values
-
PartialContent_VALUE
public static final int PartialContent_VALUE
PartialContent = 206;- See Also:
- Constant Field Values
-
MultiStatus_VALUE
public static final int MultiStatus_VALUE
MultiStatus = 207;- See Also:
- Constant Field Values
-
AlreadyReported_VALUE
public static final int AlreadyReported_VALUE
AlreadyReported = 208;- See Also:
- Constant Field Values
-
IMUsed_VALUE
public static final int IMUsed_VALUE
IMUsed = 226;- See Also:
- Constant Field Values
-
MultipleChoices_VALUE
public static final int MultipleChoices_VALUE
MultipleChoices = 300;- See Also:
- Constant Field Values
-
MovedPermanently_VALUE
public static final int MovedPermanently_VALUE
MovedPermanently = 301;- See Also:
- Constant Field Values
-
Found_VALUE
public static final int Found_VALUE
Found = 302;- See Also:
- Constant Field Values
-
SeeOther_VALUE
public static final int SeeOther_VALUE
SeeOther = 303;- See Also:
- Constant Field Values
-
NotModified_VALUE
public static final int NotModified_VALUE
NotModified = 304;- See Also:
- Constant Field Values
-
UseProxy_VALUE
public static final int UseProxy_VALUE
UseProxy = 305;- See Also:
- Constant Field Values
-
TemporaryRedirect_VALUE
public static final int TemporaryRedirect_VALUE
TemporaryRedirect = 307;- See Also:
- Constant Field Values
-
PermanentRedirect_VALUE
public static final int PermanentRedirect_VALUE
PermanentRedirect = 308;- See Also:
- Constant Field Values
-
BadRequest_VALUE
public static final int BadRequest_VALUE
BadRequest = 400;- See Also:
- Constant Field Values
-
Unauthorized_VALUE
public static final int Unauthorized_VALUE
Unauthorized = 401;- See Also:
- Constant Field Values
-
PaymentRequired_VALUE
public static final int PaymentRequired_VALUE
PaymentRequired = 402;- See Also:
- Constant Field Values
-
Forbidden_VALUE
public static final int Forbidden_VALUE
Forbidden = 403;- See Also:
- Constant Field Values
-
NotFound_VALUE
public static final int NotFound_VALUE
NotFound = 404;- See Also:
- Constant Field Values
-
MethodNotAllowed_VALUE
public static final int MethodNotAllowed_VALUE
MethodNotAllowed = 405;- See Also:
- Constant Field Values
-
NotAcceptable_VALUE
public static final int NotAcceptable_VALUE
NotAcceptable = 406;- See Also:
- Constant Field Values
-
ProxyAuthenticationRequired_VALUE
public static final int ProxyAuthenticationRequired_VALUE
ProxyAuthenticationRequired = 407;- See Also:
- Constant Field Values
-
RequestTimeout_VALUE
public static final int RequestTimeout_VALUE
RequestTimeout = 408;- See Also:
- Constant Field Values
-
Conflict_VALUE
public static final int Conflict_VALUE
Conflict = 409;- See Also:
- Constant Field Values
-
Gone_VALUE
public static final int Gone_VALUE
Gone = 410;- See Also:
- Constant Field Values
-
LengthRequired_VALUE
public static final int LengthRequired_VALUE
LengthRequired = 411;- See Also:
- Constant Field Values
-
PreconditionFailed_VALUE
public static final int PreconditionFailed_VALUE
PreconditionFailed = 412;- See Also:
- Constant Field Values
-
PayloadTooLarge_VALUE
public static final int PayloadTooLarge_VALUE
PayloadTooLarge = 413;- See Also:
- Constant Field Values
-
URITooLong_VALUE
public static final int URITooLong_VALUE
URITooLong = 414;- See Also:
- Constant Field Values
-
UnsupportedMediaType_VALUE
public static final int UnsupportedMediaType_VALUE
UnsupportedMediaType = 415;- See Also:
- Constant Field Values
-
RangeNotSatisfiable_VALUE
public static final int RangeNotSatisfiable_VALUE
RangeNotSatisfiable = 416;- See Also:
- Constant Field Values
-
ExpectationFailed_VALUE
public static final int ExpectationFailed_VALUE
ExpectationFailed = 417;- See Also:
- Constant Field Values
-
MisdirectedRequest_VALUE
public static final int MisdirectedRequest_VALUE
MisdirectedRequest = 421;- See Also:
- Constant Field Values
-
UnprocessableEntity_VALUE
public static final int UnprocessableEntity_VALUE
UnprocessableEntity = 422;- See Also:
- Constant Field Values
-
Locked_VALUE
public static final int Locked_VALUE
Locked = 423;- See Also:
- Constant Field Values
-
FailedDependency_VALUE
public static final int FailedDependency_VALUE
FailedDependency = 424;- See Also:
- Constant Field Values
-
UpgradeRequired_VALUE
public static final int UpgradeRequired_VALUE
UpgradeRequired = 426;- See Also:
- Constant Field Values
-
PreconditionRequired_VALUE
public static final int PreconditionRequired_VALUE
PreconditionRequired = 428;- See Also:
- Constant Field Values
-
TooManyRequests_VALUE
public static final int TooManyRequests_VALUE
TooManyRequests = 429;- See Also:
- Constant Field Values
-
RequestHeaderFieldsTooLarge_VALUE
public static final int RequestHeaderFieldsTooLarge_VALUE
RequestHeaderFieldsTooLarge = 431;- See Also:
- Constant Field Values
-
InternalServerError_VALUE
public static final int InternalServerError_VALUE
InternalServerError = 500;- See Also:
- Constant Field Values
-
NotImplemented_VALUE
public static final int NotImplemented_VALUE
NotImplemented = 501;- See Also:
- Constant Field Values
-
BadGateway_VALUE
public static final int BadGateway_VALUE
BadGateway = 502;- See Also:
- Constant Field Values
-
ServiceUnavailable_VALUE
public static final int ServiceUnavailable_VALUE
ServiceUnavailable = 503;- See Also:
- Constant Field Values
-
GatewayTimeout_VALUE
public static final int GatewayTimeout_VALUE
GatewayTimeout = 504;- See Also:
- Constant Field Values
-
HTTPVersionNotSupported_VALUE
public static final int HTTPVersionNotSupported_VALUE
HTTPVersionNotSupported = 505;- See Also:
- Constant Field Values
-
VariantAlsoNegotiates_VALUE
public static final int VariantAlsoNegotiates_VALUE
VariantAlsoNegotiates = 506;- See Also:
- Constant Field Values
-
InsufficientStorage_VALUE
public static final int InsufficientStorage_VALUE
InsufficientStorage = 507;- See Also:
- Constant Field Values
-
LoopDetected_VALUE
public static final int LoopDetected_VALUE
LoopDetected = 508;- See Also:
- Constant Field Values
-
NotExtended_VALUE
public static final int NotExtended_VALUE
NotExtended = 510;- See Also:
- Constant Field Values
-
NetworkAuthenticationRequired_VALUE
public static final int NetworkAuthenticationRequired_VALUE
NetworkAuthenticationRequired = 511;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static StatusCode[] 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 (StatusCode c : StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatusCode 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static StatusCode valueOf(int value)
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
public static StatusCode forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<StatusCode> 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
public static StatusCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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
-
-