Error Handling
When to Use This Skill
Error handling for GitHub App tokens addresses:
- Token expiration (401) - Expired tokens after 1 hour
- Permission errors (403) - Missing app permissions or installation scopes
- Rate limits (429) - API usage limits and retry strategies
- Network failures - Transient connectivity issues
- Validation errors (422) - Invalid request payloads
Error Handling Strategy
- Detect - Identify error type from HTTP status codes
- Classify - Determine if error is retryable
- Retry - Use exponential backoff for transient errors
- Escalate - Provide actionable messages for permanent failures
Implementation
See the full implementation guide in the source documentation.
Examples
See examples.md for code examples.
Full Reference
See reference.md for complete documentation.