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 enum envoy.type.v3.StatusCode
  • Enum Constant Details

    • 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 Details

    • 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:
    • Continue_VALUE

      public static final int Continue_VALUE
      Continue = 100;
      See Also:
    • OK_VALUE

      public static final int OK_VALUE
      OK = 200;
      See Also:
    • Created_VALUE

      public static final int Created_VALUE
      Created = 201;
      See Also:
    • Accepted_VALUE

      public static final int Accepted_VALUE
      Accepted = 202;
      See Also:
    • NonAuthoritativeInformation_VALUE

      public static final int NonAuthoritativeInformation_VALUE
      NonAuthoritativeInformation = 203;
      See Also:
    • NoContent_VALUE

      public static final int NoContent_VALUE
      NoContent = 204;
      See Also:
    • ResetContent_VALUE

      public static final int ResetContent_VALUE
      ResetContent = 205;
      See Also:
    • PartialContent_VALUE

      public static final int PartialContent_VALUE
      PartialContent = 206;
      See Also:
    • MultiStatus_VALUE

      public static final int MultiStatus_VALUE
      MultiStatus = 207;
      See Also:
    • AlreadyReported_VALUE

      public static final int AlreadyReported_VALUE
      AlreadyReported = 208;
      See Also:
    • IMUsed_VALUE

      public static final int IMUsed_VALUE
      IMUsed = 226;
      See Also:
    • MultipleChoices_VALUE

      public static final int MultipleChoices_VALUE
      MultipleChoices = 300;
      See Also:
    • MovedPermanently_VALUE

      public static final int MovedPermanently_VALUE
      MovedPermanently = 301;
      See Also:
    • Found_VALUE

      public static final int Found_VALUE
      Found = 302;
      See Also:
    • SeeOther_VALUE

      public static final int SeeOther_VALUE
      SeeOther = 303;
      See Also:
    • NotModified_VALUE

      public static final int NotModified_VALUE
      NotModified = 304;
      See Also:
    • UseProxy_VALUE

      public static final int UseProxy_VALUE
      UseProxy = 305;
      See Also:
    • TemporaryRedirect_VALUE

      public static final int TemporaryRedirect_VALUE
      TemporaryRedirect = 307;
      See Also:
    • PermanentRedirect_VALUE

      public static final int PermanentRedirect_VALUE
      PermanentRedirect = 308;
      See Also:
    • BadRequest_VALUE

      public static final int BadRequest_VALUE
      BadRequest = 400;
      See Also:
    • Unauthorized_VALUE

      public static final int Unauthorized_VALUE
      Unauthorized = 401;
      See Also:
    • PaymentRequired_VALUE

      public static final int PaymentRequired_VALUE
      PaymentRequired = 402;
      See Also:
    • Forbidden_VALUE

      public static final int Forbidden_VALUE
      Forbidden = 403;
      See Also:
    • NotFound_VALUE

      public static final int NotFound_VALUE
      NotFound = 404;
      See Also:
    • MethodNotAllowed_VALUE

      public static final int MethodNotAllowed_VALUE
      MethodNotAllowed = 405;
      See Also:
    • NotAcceptable_VALUE

      public static final int NotAcceptable_VALUE
      NotAcceptable = 406;
      See Also:
    • ProxyAuthenticationRequired_VALUE

      public static final int ProxyAuthenticationRequired_VALUE
      ProxyAuthenticationRequired = 407;
      See Also:
    • RequestTimeout_VALUE

      public static final int RequestTimeout_VALUE
      RequestTimeout = 408;
      See Also:
    • Conflict_VALUE

      public static final int Conflict_VALUE
      Conflict = 409;
      See Also:
    • Gone_VALUE

      public static final int Gone_VALUE
      Gone = 410;
      See Also:
    • LengthRequired_VALUE

      public static final int LengthRequired_VALUE
      LengthRequired = 411;
      See Also:
    • PreconditionFailed_VALUE

      public static final int PreconditionFailed_VALUE
      PreconditionFailed = 412;
      See Also:
    • PayloadTooLarge_VALUE

      public static final int PayloadTooLarge_VALUE
      PayloadTooLarge = 413;
      See Also:
    • URITooLong_VALUE

      public static final int URITooLong_VALUE
      URITooLong = 414;
      See Also:
    • UnsupportedMediaType_VALUE

      public static final int UnsupportedMediaType_VALUE
      UnsupportedMediaType = 415;
      See Also:
    • RangeNotSatisfiable_VALUE

      public static final int RangeNotSatisfiable_VALUE
      RangeNotSatisfiable = 416;
      See Also:
    • ExpectationFailed_VALUE

      public static final int ExpectationFailed_VALUE
      ExpectationFailed = 417;
      See Also:
    • MisdirectedRequest_VALUE

      public static final int MisdirectedRequest_VALUE
      MisdirectedRequest = 421;
      See Also:
    • UnprocessableEntity_VALUE

      public static final int UnprocessableEntity_VALUE
      UnprocessableEntity = 422;
      See Also:
    • Locked_VALUE

      public static final int Locked_VALUE
      Locked = 423;
      See Also:
    • FailedDependency_VALUE

      public static final int FailedDependency_VALUE
      FailedDependency = 424;
      See Also:
    • UpgradeRequired_VALUE

      public static final int UpgradeRequired_VALUE
      UpgradeRequired = 426;
      See Also:
    • PreconditionRequired_VALUE

      public static final int PreconditionRequired_VALUE
      PreconditionRequired = 428;
      See Also:
    • TooManyRequests_VALUE

      public static final int TooManyRequests_VALUE
      TooManyRequests = 429;
      See Also:
    • RequestHeaderFieldsTooLarge_VALUE

      public static final int RequestHeaderFieldsTooLarge_VALUE
      RequestHeaderFieldsTooLarge = 431;
      See Also:
    • InternalServerError_VALUE

      public static final int InternalServerError_VALUE
      InternalServerError = 500;
      See Also:
    • NotImplemented_VALUE

      public static final int NotImplemented_VALUE
      NotImplemented = 501;
      See Also:
    • BadGateway_VALUE

      public static final int BadGateway_VALUE
      BadGateway = 502;
      See Also:
    • ServiceUnavailable_VALUE

      public static final int ServiceUnavailable_VALUE
      ServiceUnavailable = 503;
      See Also:
    • GatewayTimeout_VALUE

      public static final int GatewayTimeout_VALUE
      GatewayTimeout = 504;
      See Also:
    • HTTPVersionNotSupported_VALUE

      public static final int HTTPVersionNotSupported_VALUE
      HTTPVersionNotSupported = 505;
      See Also:
    • VariantAlsoNegotiates_VALUE

      public static final int VariantAlsoNegotiates_VALUE
      VariantAlsoNegotiates = 506;
      See Also:
    • InsufficientStorage_VALUE

      public static final int InsufficientStorage_VALUE
      InsufficientStorage = 507;
      See Also:
    • LoopDetected_VALUE

      public static final int LoopDetected_VALUE
      LoopDetected = 508;
      See Also:
    • NotExtended_VALUE

      public static final int NotExtended_VALUE
      NotExtended = 510;
      See Also:
    • NetworkAuthenticationRequired_VALUE

      public static final int NetworkAuthenticationRequired_VALUE
      NetworkAuthenticationRequired = 511;
      See Also:
    • internalValueMap

      private static final com.google.protobuf.Internal.EnumLiteMap<StatusCode> internalValueMap
    • VALUES

      private static final StatusCode[] VALUES
    • value

      private final int value
  • Constructor Details

    • StatusCode

      private StatusCode(int value)
  • Method Details

    • values

      public static StatusCode[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null