API Error Handling
Establishes standardized API error handling patterns for effective error response formatting and recovery procedures.
Install this skill
Security score
The API Error Handling skill was audited on Mar 1, 2026 and we found 15 security issues across 2 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 191 | ? `${resource} with identifier '${identifier}' not found` |
Template literal with variable interpolation in command context
| 192 | : `${resource} not found`; |
Template literal with variable interpolation in command context
| 208 | `${service} service error: ${message}`, |
Template literal with variable interpolation in command context
| 216 | `Database error: ${message}`, |
Template literal with variable interpolation in command context
| 620 | return `req_${Date.now()}_${Math.random().toString(36).substring(7)}`; |
Template literal with variable interpolation in command context
| 635 | error.message = `${context}: ${error.message}`; |
Template literal with variable interpolation in command context
| 674 | `Retry operation (${maxRetries} attempts)` |
Template literal with variable interpolation in command context
| 766 | console.log(`✅ Operation succeeded after ${attempt} attempts${context ? ` (${context})` : ''}`); |
Template literal with variable interpolation in command context
| 786 | console.log(`🔄 Retry attempt ${attempt}/${policy.maxAttempts} for ${context || 'operation'} after ${delay}ms`); |
Template literal with variable interpolation in command context
| 1030 | message: `High error rate: ${recentErrors} errors in the last 5 minutes`, |
Template literal with variable interpolation in command context
| 1042 | message: `${criticalErrors} critical errors detected`, |
Template literal with variable interpolation in command context
| 1054 | message: `Frequent error: ${topError.code} (${topError.count} occurrences)`, |
Access to .env file
| 431 | if (request && process.env.NODE_ENV === 'development') { |
Access to .env file
| 524 | if (process.env.NODE_ENV === 'development') { |
Access to .env file
| 593 | if (process.env.NODE_ENV === 'development') { |
Install this skill with one command
/learn @coverage-creatives/api-error-handling