Question · Vibe coding with Claude Code course · Module 8: Slack clone
Quiz: Exit code of the Notification hook
What happens when the command of a Notification hook ends with exit code 2?
Answer options
- Nothing: for the Notification event the exit code is ignored, and the hook blocks nothing
- Claude stops the current task
- Claude Code blocks the permission request
- The hook is disabled until the end of the session
You can check the correct answer by solving this task in the CodeWorlds game.