aimlapi-errors
Installation
SKILL.md
Handle errors and retries
When to use
- A call to
api.aimlapi.comfails and you need to know why and what to do - Adding retries, timeouts or error handling to an integration
Steps
1. Read the error body
Most errors are application/problem+json with title, status, message, requestId and an error object; validation errors list each bad field in error.details[] (path, reason). Provider errors may use the OpenAI shape {"error": {"message", "type", "code"}}. A code, when there is one, is in top-level code or error.code. Examples and a defensive parser: references/error-shapes.md.
Every response has an x-request-id header (and requestId in error bodies). Log it; support needs it.
2. Look up the status in § Errors
It says whether to fix the request, wait, or retry.