AiPromptss
Back to browse

Error Documentation Framework

Use this prompt for comprehensive error documentation: ```markdown Create error documentation for our REST API: Common errors to cover: - 400 Bad Request (miss…

Added May 19, 20260 views0 copies
Prompt
Use this prompt for comprehensive error documentation:

```markdown
Create error documentation for our REST API:

Common errors to cover:
- 400 Bad Request (missing fields, invalid format)
- 401 Unauthorized (invalid credentials, expired token)
- 403 Forbidden (insufficient permissions)
- 404 Not Found (resource doesn't exist)
- 429 Too Many Requests (rate limit exceeded)
- 500 Server Error (our fault, not yours)

For each error:
1. Explain what caused it
2. Show example error response
3. List 2-3 ways to fix it
4. Include cURL example of correct request

Replace text in [BRACKETS] with your own values before pasting.