Error Codes
GLBWinTK returns standard HTTP status codes with JSON error bodies.
Common Codes
| Status | Meaning | Typical Fix |
|---|---|---|
400 | Invalid request body or missing field. | Check JSON syntax and required fields. |
401 | Missing or invalid API key. | Send Authorization: Bearer YOUR_API_KEY. |
403 | The key cannot access the requested resource. | Check key status and account configuration. |
404 | Endpoint or model id was not found. | Confirm the URL and call /models. |
429 | Rate or quota limit reached. | Retry later or adjust usage. |
500 | Internal service error. | Retry with backoff and capture the request id. |
502 | Upstream model request failed. | Retry later or choose another enabled model id. |
Error Body
Example shape:
{
"error": {
"message": "Invalid API key",
"type": "authentication_error",
"code": "invalid_api_key"
}
}
Actual fields can vary by endpoint and upstream response.
Debug Checklist
- Confirm the base URL is
https://api.glbwintk.com/v1. - Confirm the
Authorizationheader is present. - Confirm the model id appears in
/models. - Capture the HTTP status code and response body.
- Retry transient failures with exponential backoff.