Mining/pkg
snider 2e59604825 feat(api): Add structured API error responses with codes and suggestions
- Add APIError struct with code, message, details, suggestion, retryable
- Add error code constants (MINER_NOT_FOUND, PROFILE_NOT_FOUND, etc.)
- Add respondWithError helper with automatic suggestions per error type
- Update miner not found and profile not found errors to use new format
- Fix .gitignore to not match pkg/mining directory

Improves DX by providing machine-readable error codes and actionable suggestions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 09:38:25 +00:00
..
database refactor: Remove unused code and fix nil dereference issues 2025-12-31 09:24:12 +00:00
mining feat(api): Add structured API error responses with codes and suggestions 2025-12-31 09:38:25 +00:00
node refactor: Remove unused code and fix nil dereference issues 2025-12-31 09:24:12 +00:00