Enum StatusCode

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<StatusCode>

    public enum StatusCode
    extends java.lang.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 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;
      • 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
      • 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
      • 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
      • NotModified_VALUE

        public static final int NotModified_VALUE
        NotModified = 304;
        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
      • 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
      • 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
      • 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
      • internalValueMap

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

        private static final StatusCode[] VALUES
      • value

        private final int value
    • Constructor Detail

      • StatusCode

        private StatusCode​(int value)
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null