def get()

in src/dubbo/remoting/aio/http2/registries.py [0:0]


    def get(cls, code: int):
        """
        Get the error code by code.
        :param code: The error code.
        :type code: int
        """
        for error_code in cls:
            if error_code.value == code:
                return error_code
        # Unknown or unsupported error codes MUST NOT trigger any special behavior.
        # These MAY be treated as equivalent to INTERNAL_ERROR.
        return cls.INTERNAL_ERROR