syntax = "proto3";

message DocError {
    ErrorCode code = 1;
    string msg = 2;
}
enum ErrorCode {
    DocIdInvalid = 0;
    DocNotfound = 1;
    WsConnectError = 10;
    UndoFail = 200;
    RedoFail = 201;
    OutOfBound = 202;
    DuplicateRevision = 400;
    UserUnauthorized = 999;
    InternalError = 1000;
}
