Package io.envoyproxy.envoy.type.v3
Enum StatusCode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<StatusCode>
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
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccepted = 202;
AlreadyReported = 208;
BadGateway = 502;
BadRequest = 400;
Conflict = 409;
Continue = 100;
Created = 201;
Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.ExpectationFailed = 417;
FailedDependency = 424;
Forbidden = 403;
Found = 302;
GatewayTimeout = 504;
Gone = 410;
HTTPVersionNotSupported = 505;
IMUsed = 226;
InsufficientStorage = 507;
InternalServerError = 500;
LengthRequired = 411;
Locked = 423;
LoopDetected = 508;
MethodNotAllowed = 405;
MisdirectedRequest = 421;
MovedPermanently = 301;
MultipleChoices = 300;
MultiStatus = 207;
NetworkAuthenticationRequired = 511;
NoContent = 204;
NonAuthoritativeInformation = 203;
NotAcceptable = 406;
NotExtended = 510;
NotFound = 404;
NotImplemented = 501;
NotModified = 304;
OK = 200;
PartialContent = 206;
PayloadTooLarge = 413;
PaymentRequired = 402;
PermanentRedirect = 308;
PreconditionFailed = 412;
PreconditionRequired = 428;
ProxyAuthenticationRequired = 407;
RangeNotSatisfiable = 416;
RequestHeaderFieldsTooLarge = 431;
RequestTimeout = 408;
ResetContent = 205;
SeeOther = 303;
ServiceUnavailable = 503;
TemporaryRedirect = 307;
TooManyRequests = 429;
Unauthorized = 401;
UnprocessableEntity = 422;
UnsupportedMediaType = 415;
UpgradeRequired = 426;
URITooLong = 414;
UseProxy = 305;
VariantAlsoNegotiates = 506;
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Accepted = 202;
static final int
AlreadyReported = 208;
static final int
BadGateway = 502;
static final int
BadRequest = 400;
static final int
Conflict = 409;
static final int
Continue = 100;
static final int
Created = 201;
static final int
Empty - This code not part of the HTTP status code specification, but it is needed for proto `enum` type.static final int
ExpectationFailed = 417;
static final int
FailedDependency = 424;
static final int
Forbidden = 403;
static final int
Found = 302;
static final int
GatewayTimeout = 504;
static final int
Gone = 410;
static final int
HTTPVersionNotSupported = 505;
static final int
IMUsed = 226;
static final int
InsufficientStorage = 507;
static final int
InternalServerError = 500;
private static final com.google.protobuf.Internal.EnumLiteMap
<StatusCode> static final int
LengthRequired = 411;
static final int
Locked = 423;
static final int
LoopDetected = 508;
static final int
MethodNotAllowed = 405;
static final int
MisdirectedRequest = 421;
static final int
MovedPermanently = 301;
static final int
MultipleChoices = 300;
static final int
MultiStatus = 207;
static final int
NetworkAuthenticationRequired = 511;
static final int
NoContent = 204;
static final int
NonAuthoritativeInformation = 203;
static final int
NotAcceptable = 406;
static final int
NotExtended = 510;
static final int
NotFound = 404;
static final int
NotImplemented = 501;
static final int
NotModified = 304;
static final int
OK = 200;
static final int
PartialContent = 206;
static final int
PayloadTooLarge = 413;
static final int
PaymentRequired = 402;
static final int
PermanentRedirect = 308;
static final int
PreconditionFailed = 412;
static final int
PreconditionRequired = 428;
static final int
ProxyAuthenticationRequired = 407;
static final int
RangeNotSatisfiable = 416;
static final int
RequestHeaderFieldsTooLarge = 431;
static final int
RequestTimeout = 408;
static final int
ResetContent = 205;
static final int
SeeOther = 303;
static final int
ServiceUnavailable = 503;
static final int
TemporaryRedirect = 307;
static final int
TooManyRequests = 429;
static final int
Unauthorized = 401;
static final int
UnprocessableEntity = 422;
static final int
UnsupportedMediaType = 415;
static final int
UpgradeRequired = 426;
static final int
URITooLong = 414;
static final int
UseProxy = 305;
private final int
private static final StatusCode[]
static final int
VariantAlsoNegotiates = 506;
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusCode
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<StatusCode> static StatusCode
valueOf
(int value) Deprecated.static StatusCode
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static StatusCode
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 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;
-
OK
OK = 200;
-
Created
Created = 201;
-
Accepted
Accepted = 202;
-
NonAuthoritativeInformation
NonAuthoritativeInformation = 203;
-
NoContent
NoContent = 204;
-
ResetContent
ResetContent = 205;
-
PartialContent
PartialContent = 206;
-
MultiStatus
MultiStatus = 207;
-
AlreadyReported
AlreadyReported = 208;
-
IMUsed
IMUsed = 226;
-
MultipleChoices
MultipleChoices = 300;
-
MovedPermanently
MovedPermanently = 301;
-
Found
Found = 302;
-
SeeOther
SeeOther = 303;
-
NotModified
NotModified = 304;
-
UseProxy
UseProxy = 305;
-
TemporaryRedirect
TemporaryRedirect = 307;
-
PermanentRedirect
PermanentRedirect = 308;
-
BadRequest
BadRequest = 400;
-
Unauthorized
Unauthorized = 401;
-
PaymentRequired
PaymentRequired = 402;
-
Forbidden
Forbidden = 403;
-
NotFound
NotFound = 404;
-
MethodNotAllowed
MethodNotAllowed = 405;
-
NotAcceptable
NotAcceptable = 406;
-
ProxyAuthenticationRequired
ProxyAuthenticationRequired = 407;
-
RequestTimeout
RequestTimeout = 408;
-
Conflict
Conflict = 409;
-
Gone
Gone = 410;
-
LengthRequired
LengthRequired = 411;
-
PreconditionFailed
PreconditionFailed = 412;
-
PayloadTooLarge
PayloadTooLarge = 413;
-
URITooLong
URITooLong = 414;
-
UnsupportedMediaType
UnsupportedMediaType = 415;
-
RangeNotSatisfiable
RangeNotSatisfiable = 416;
-
ExpectationFailed
ExpectationFailed = 417;
-
MisdirectedRequest
MisdirectedRequest = 421;
-
UnprocessableEntity
UnprocessableEntity = 422;
-
Locked
Locked = 423;
-
FailedDependency
FailedDependency = 424;
-
UpgradeRequired
UpgradeRequired = 426;
-
PreconditionRequired
PreconditionRequired = 428;
-
TooManyRequests
TooManyRequests = 429;
-
RequestHeaderFieldsTooLarge
RequestHeaderFieldsTooLarge = 431;
-
InternalServerError
InternalServerError = 500;
-
NotImplemented
NotImplemented = 501;
-
BadGateway
BadGateway = 502;
-
GatewayTimeout
GatewayTimeout = 504;
-
HTTPVersionNotSupported
HTTPVersionNotSupported = 505;
-
VariantAlsoNegotiates
VariantAlsoNegotiates = 506;
-
InsufficientStorage
InsufficientStorage = 507;
-
LoopDetected
LoopDetected = 508;
-
NotExtended
NotExtended = 510;
-
NetworkAuthenticationRequired
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;
- See Also:
-
OK_VALUE
public static final int OK_VALUEOK = 200;
- See Also:
-
Created_VALUE
public static final int Created_VALUECreated = 201;
- See Also:
-
Accepted_VALUE
public static final int Accepted_VALUEAccepted = 202;
- See Also:
-
NonAuthoritativeInformation_VALUE
public static final int NonAuthoritativeInformation_VALUENonAuthoritativeInformation = 203;
- See Also:
-
NoContent_VALUE
public static final int NoContent_VALUENoContent = 204;
- See Also:
-
ResetContent_VALUE
public static final int ResetContent_VALUEResetContent = 205;
- See Also:
-
PartialContent_VALUE
public static final int PartialContent_VALUEPartialContent = 206;
- See Also:
-
MultiStatus_VALUE
public static final int MultiStatus_VALUEMultiStatus = 207;
- See Also:
-
AlreadyReported_VALUE
public static final int AlreadyReported_VALUEAlreadyReported = 208;
- See Also:
-
IMUsed_VALUE
public static final int IMUsed_VALUEIMUsed = 226;
- See Also:
-
MultipleChoices_VALUE
public static final int MultipleChoices_VALUEMultipleChoices = 300;
- See Also:
-
MovedPermanently_VALUE
public static final int MovedPermanently_VALUEMovedPermanently = 301;
- See Also:
-
Found_VALUE
public static final int Found_VALUEFound = 302;
- See Also:
-
SeeOther_VALUE
public static final int SeeOther_VALUESeeOther = 303;
- See Also:
-
NotModified_VALUE
public static final int NotModified_VALUENotModified = 304;
- See Also:
-
UseProxy_VALUE
public static final int UseProxy_VALUEUseProxy = 305;
- See Also:
-
TemporaryRedirect_VALUE
public static final int TemporaryRedirect_VALUETemporaryRedirect = 307;
- See Also:
-
PermanentRedirect_VALUE
public static final int PermanentRedirect_VALUEPermanentRedirect = 308;
- See Also:
-
BadRequest_VALUE
public static final int BadRequest_VALUEBadRequest = 400;
- See Also:
-
Unauthorized_VALUE
public static final int Unauthorized_VALUEUnauthorized = 401;
- See Also:
-
PaymentRequired_VALUE
public static final int PaymentRequired_VALUEPaymentRequired = 402;
- See Also:
-
Forbidden_VALUE
public static final int Forbidden_VALUEForbidden = 403;
- See Also:
-
NotFound_VALUE
public static final int NotFound_VALUENotFound = 404;
- See Also:
-
MethodNotAllowed_VALUE
public static final int MethodNotAllowed_VALUEMethodNotAllowed = 405;
- See Also:
-
NotAcceptable_VALUE
public static final int NotAcceptable_VALUENotAcceptable = 406;
- See Also:
-
ProxyAuthenticationRequired_VALUE
public static final int ProxyAuthenticationRequired_VALUEProxyAuthenticationRequired = 407;
- See Also:
-
RequestTimeout_VALUE
public static final int RequestTimeout_VALUERequestTimeout = 408;
- See Also:
-
Conflict_VALUE
public static final int Conflict_VALUEConflict = 409;
- See Also:
-
Gone_VALUE
public static final int Gone_VALUEGone = 410;
- See Also:
-
LengthRequired_VALUE
public static final int LengthRequired_VALUELengthRequired = 411;
- See Also:
-
PreconditionFailed_VALUE
public static final int PreconditionFailed_VALUEPreconditionFailed = 412;
- See Also:
-
PayloadTooLarge_VALUE
public static final int PayloadTooLarge_VALUEPayloadTooLarge = 413;
- See Also:
-
URITooLong_VALUE
public static final int URITooLong_VALUEURITooLong = 414;
- See Also:
-
UnsupportedMediaType_VALUE
public static final int UnsupportedMediaType_VALUEUnsupportedMediaType = 415;
- See Also:
-
RangeNotSatisfiable_VALUE
public static final int RangeNotSatisfiable_VALUERangeNotSatisfiable = 416;
- See Also:
-
ExpectationFailed_VALUE
public static final int ExpectationFailed_VALUEExpectationFailed = 417;
- See Also:
-
MisdirectedRequest_VALUE
public static final int MisdirectedRequest_VALUEMisdirectedRequest = 421;
- See Also:
-
UnprocessableEntity_VALUE
public static final int UnprocessableEntity_VALUEUnprocessableEntity = 422;
- See Also:
-
Locked_VALUE
public static final int Locked_VALUELocked = 423;
- See Also:
-
FailedDependency_VALUE
public static final int FailedDependency_VALUEFailedDependency = 424;
- See Also:
-
UpgradeRequired_VALUE
public static final int UpgradeRequired_VALUEUpgradeRequired = 426;
- See Also:
-
PreconditionRequired_VALUE
public static final int PreconditionRequired_VALUEPreconditionRequired = 428;
- See Also:
-
TooManyRequests_VALUE
public static final int TooManyRequests_VALUETooManyRequests = 429;
- See Also:
-
RequestHeaderFieldsTooLarge_VALUE
public static final int RequestHeaderFieldsTooLarge_VALUERequestHeaderFieldsTooLarge = 431;
- See Also:
-
InternalServerError_VALUE
public static final int InternalServerError_VALUEInternalServerError = 500;
- See Also:
-
NotImplemented_VALUE
public static final int NotImplemented_VALUENotImplemented = 501;
- See Also:
-
BadGateway_VALUE
public static final int BadGateway_VALUEBadGateway = 502;
- See Also:
-
GatewayTimeout_VALUE
public static final int GatewayTimeout_VALUEGatewayTimeout = 504;
- See Also:
-
HTTPVersionNotSupported_VALUE
public static final int HTTPVersionNotSupported_VALUEHTTPVersionNotSupported = 505;
- See Also:
-
VariantAlsoNegotiates_VALUE
public static final int VariantAlsoNegotiates_VALUEVariantAlsoNegotiates = 506;
- See Also:
-
InsufficientStorage_VALUE
public static final int InsufficientStorage_VALUEInsufficientStorage = 507;
- See Also:
-
LoopDetected_VALUE
public static final int LoopDetected_VALUELoopDetected = 508;
- See Also:
-
NotExtended_VALUE
public static final int NotExtended_VALUENotExtended = 510;
- See Also:
-
NetworkAuthenticationRequired_VALUE
public static final int NetworkAuthenticationRequired_VALUENetworkAuthenticationRequired = 511;
- See Also:
-
internalValueMap
-
VALUES
-
value
private final int value
-
-
Constructor Details
-
StatusCode
private StatusCode(int value)
-
-
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in 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
-