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 intAccepted = 202;static final intAlreadyReported = 208;static final intBadGateway = 502;static final intBadRequest = 400;static final intConflict = 409;static final intContinue = 100;static final intCreated = 201;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;static final intFailedDependency = 424;static final intForbidden = 403;static final intFound = 302;static final intGatewayTimeout = 504;static final intGone = 410;static final intHTTPVersionNotSupported = 505;static final intIMUsed = 226;static final intInsufficientStorage = 507;static final intInternalServerError = 500;private static final com.google.protobuf.Internal.EnumLiteMap<StatusCode> static final intLengthRequired = 411;static final intLocked = 423;static final intLoopDetected = 508;static final intMethodNotAllowed = 405;static final intMisdirectedRequest = 421;static final intMovedPermanently = 301;static final intMultipleChoices = 300;static final intMultiStatus = 207;static final intNetworkAuthenticationRequired = 511;static final intNoContent = 204;static final intNonAuthoritativeInformation = 203;static final intNotAcceptable = 406;static final intNotExtended = 510;static final intNotFound = 404;static final intNotImplemented = 501;static final intNotModified = 304;static final intOK = 200;static final intPartialContent = 206;static final intPayloadTooLarge = 413;static final intPaymentRequired = 402;static final intPermanentRedirect = 308;static final intPreconditionFailed = 412;static final intPreconditionRequired = 428;static final intProxyAuthenticationRequired = 407;static final intRangeNotSatisfiable = 416;static final intRequestHeaderFieldsTooLarge = 431;static final intRequestTimeout = 408;static final intResetContent = 205;static final intSeeOther = 303;static final intServiceUnavailable = 503;static final intTemporaryRedirect = 307;static final intTooManyRequests = 429;static final intUnauthorized = 401;static final intUnprocessableEntity = 422;static final intUnsupportedMediaType = 415;static final intUpgradeRequired = 426;static final intURITooLong = 414;static final intUseProxy = 305;private final intprivate static final StatusCode[]static final intVariantAlsoNegotiates = 506; -
Constructor Summary
Constructors -
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; -
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:
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
-