package NRTYServer;

message TReply {
    enum TDispStatus {
        dsOK = 0;

        dsDIFFERENT_ANSWERS = 1;
        dsUSER_ERROR = 2;
        dsNO_REPLY = 5;
        dsUNDEFINED_REPLY_CODE = 8;
        dsINTERNAL_ERROR = 9;
        dsNOTNOW = 10;
        dsDATA_ACCEPTED = 11;
        dsDEPRECATED = 12;
        dsCANT_STORE_IN_QUEUE = 13;
        dsINTERNAL_TIMEOUT = 14;
        dsINCONSISTENCY = 15;
        dsIGNORED_BY_RANK = 16;

        dsQUORUM_PASSED = 20;
        dsQUORUM_FAILED = 21;

        dsDOCUMENT_DISCARDED = 30;
    }

    enum TRTYStatus {
        OK = 0;
        INCORRECT_DOCUMENT = 2;
        INTERNAL_ERROR = 9;
        NOTNOW = 10;
        DATA_ACCEPTED = 11;
        DEPRECATED = 12;
        INCORRECT_UPDATE = 13;
        NOTNOW_ONSTOP = 14;
    }

    required uint64 MessageId = 1;
    required int32 Status = 2;
    optional string StatusMessage = 3;
}
