100101102103104105106107108109
if (DoorStatus.SELECTED == status) { game.select(doorId); } else if (DoorStatus.OPEN == status) { game.open(doorId); } else { throw new IllegalTransitionException(gameId, doorId, status); } return new ResponseEntity<Void>(HttpStatus.OK); }