The Sunbird AI API uses standard HTTP status codes to indicate the success or failure of requests.Documentation Index
Fetch the complete documentation index at: https://docs.sunbird.ai/llms.txt
Use this file to discover all available pages before exploring further.
Common Status Codes
| Code | Description | Action |
|---|---|---|
200 | OK. The request was successful. | Process the response body. |
400 | Bad Request. Invalid parameters or malformed JSON. | Check your request payload and parameters. |
401 | Unauthorized. Missing or invalid API token. | Verify your Authorization header. |
404 | Not Found. The endpoint or resource does not exist. | Check the URL path. |
429 | Too Many Requests. Rate limit exceeded. | Implement backoff and retry (see Rate Limits). |
500 | Server Error. Internal system issue. | Retry the request later. |
503 | Service Unavailable. Model is loading or overloaded. | Retry with exponential backoff. |
Timeouts
Some AI models, particularly large ones like Sunflower or Whisper, may take time to process requests. Server-side timeouts (e.g.,408, 504) can occur if the request takes too long.

