syntax = "proto2";

package maps_adv.geosmb.doorman.proto.errors;

message Error {
    enum ERROR_CODE {
        VALIDATION_ERROR = 1;
        UNKNOWN_CLIENT = 2;
        CLIENT_ALREADY_EXISTS = 3;
        UNSUPPORTED_EVENT_TYPE = 4;
        ATTEMPT_TO_UPDATE_CLEARED_CLIENT = 5;

        // TVM authorization errors
        NO_TVM_TICKET = 100;
        INVALID_TVM_TICKET = 101;
        TVM_FORBIDDEN = 102;
    }

    required ERROR_CODE code = 1;
    optional string description = 2;
}
