Define a Status union (e.g., "idle" | "loading" | "success" | "error"), a function that accepts only those values, and show that other strings are compile-time errors.