Exit Codes
Error Response Format
Errors are written to stderr as structured JSON:error_type field provides a machine-readable classification:
Common Errors and Solutions
Exit 1: Client Error
Missing required flags:--permit-from and --permit-to flags.
Invalid date range:
--permit-from date is earlier than --permit-to. Use YYYY-MM-DD format.
Exit 2: Auth Error
Exit 3: Rate Limited
Use
--no-retry to disable automatic retry if you want to handle rate limits yourself in a script.Exit 4: Credits Exhausted
shovels usage and contact sales@shovels.ai to increase your limit.
Exit 5: Server or Network Error
--timeout 60s.
Using Exit Codes in Scripts
Related Articles
- CLI authentication — Configure your API key
- API error handling — REST API error codes
- API credit limits — Understanding credit consumption
