Skip to main content

API Error Handling

Establishes standardized API error handling patterns for effective error response formatting and recovery procedures.

Install this skill

or
37/100

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

medium line 191

Template literal with variable interpolation in command context

SourceSKILL.md
191? `${resource} with identifier '${identifier}' not found`
medium line 192

Template literal with variable interpolation in command context

SourceSKILL.md
192: `${resource} not found`;
medium line 208

Template literal with variable interpolation in command context

SourceSKILL.md
208`${service} service error: ${message}`,
medium line 216

Template literal with variable interpolation in command context

SourceSKILL.md
216`Database error: ${message}`,
medium line 620

Template literal with variable interpolation in command context

SourceSKILL.md
620return `req_${Date.now()}_${Math.random().toString(36).substring(7)}`;
medium line 635

Template literal with variable interpolation in command context

SourceSKILL.md
635error.message = `${context}: ${error.message}`;
medium line 674

Template literal with variable interpolation in command context

SourceSKILL.md
674`Retry operation (${maxRetries} attempts)`
medium line 766

Template literal with variable interpolation in command context

SourceSKILL.md
766console.log(`✅ Operation succeeded after ${attempt} attempts${context ? ` (${context})` : ''}`);
medium line 786

Template literal with variable interpolation in command context

SourceSKILL.md
786console.log(`🔄 Retry attempt ${attempt}/${policy.maxAttempts} for ${context || 'operation'} after ${delay}ms`);
medium line 1030

Template literal with variable interpolation in command context

SourceSKILL.md
1030message: `High error rate: ${recentErrors} errors in the last 5 minutes`,
medium line 1042

Template literal with variable interpolation in command context

SourceSKILL.md
1042message: `${criticalErrors} critical errors detected`,
medium line 1054

Template literal with variable interpolation in command context

SourceSKILL.md
1054message: `Frequent error: ${topError.code} (${topError.count} occurrences)`,
low line 431

Access to .env file

SourceSKILL.md
431if (request && process.env.NODE_ENV === 'development') {
low line 524

Access to .env file

SourceSKILL.md
524if (process.env.NODE_ENV === 'development') {
low line 593

Access to .env file

SourceSKILL.md
593if (process.env.NODE_ENV === 'development') {
Scanned on Mar 1, 2026
View Security Dashboard