API
Errors
Understanding CubeStack API error responses.
Was this page helpful?
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Understanding CubeStack API error responses.
{
"error": "Error message describing what went wrong"
}
| Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request — Invalid parameters or request body |
401 | Unauthorized — Missing or invalid API key |
403 | Forbidden — Insufficient permissions |
404 | Not Found — Resource does not exist |
409 | Conflict — Duplicate or constraint violation |
429 | Too Many Requests — Rate limit exceeded |
500 | Internal Server Error |
const response = await fetch(url, { headers });
if (!response.ok) {
const { error } = await response.json();
console.error(`API Error (${response.status}): ${error}`);
}
Was this page helpful?