API Error Code Documentation

Document API error codes and troubleshooting guidance

6/11/2026
Prompt
Create comprehensive error code documentation for:

**API/Service Name:** {{API_NAME}}
**Error Codes:**
{{ERROR_CODES}}

Generate detailed error documentation including:

## Error Code Reference

For each error code:

### Error: {{ERROR_CODE}}

**HTTP Status:** {{STATUS_CODE}}
**Error Name:** {{ERROR_NAME}}

**Description:**
Clear explanation of what this error means

**Common Causes:**
1. Cause 1
2. Cause 2
3. Cause 3

**Example Response:**
```json
{
  "error": {
    "code": "{{ERROR_CODE}}",
    "message": "Human readable message",
    "details": {}
  }
}
```

**Resolution Steps:**
1. Step 1 to fix
2. Step 2 to fix
3. Step 3 to fix

**Related Errors:**
- Related error codes that might also occur

---

## Error Handling Best Practices

### Client-Side Handling
- Recommended error handling patterns
- Retry strategies
- User-facing messages

### Error Response Format
- Standard error schema
- Field descriptions

## Quick Reference Table

| Code | Name | Status | Description |
|------|------|--------|-------------|

## Getting Help
- Support channels
- Information to include when reporting issues

Or press ⌘C to copy

Variables (6)

Replace these placeholders with your own content before using the prompt.

[{API_NAME][{ERROR_CODES][{ERROR_CODE][{STATUS_CODE][{ERROR_NAME]{ "error": { "code": "{{ERROR_CODE}

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...