package controller import "errors" // ErrGameInitNilUUID is returned by GenerateGame when the supplied // game UUID is the zero value. The HTTP layer maps it to 400. var ErrGameInitNilUUID = errors.New("game init: gameId must not be the zero UUID") // ErrGameAlreadyInit is returned by GenerateGame when the engine // storage directory already contains a state.json. The HTTP layer // maps it to 409. Repeated init on the same gameId is intentionally // rejected rather than treated as a no-op; full idempotency is not // part of the contract. var ErrGameAlreadyInit = errors.New("game init: game already initialized")