Error Codes
| HTTP Code |
Meaning |
Common Cause |
401 |
Unauthorized |
Missing or invalid API key |
404 |
Not Found |
Session or resource not found |
422 |
Unprocessable Entity |
Invalid input data |
500 |
Internal Server Error |
Server or AI API error |
Error Format
{
"error": "Error type",
"message": "Detailed description"
}
Common Errors
Invalid Template
{
"message": "The selected template is invalid.",
"errors": {
"template": ["The selected template is invalid."]
}
}
Missing Products
{
"message": "The products field is required.",
"errors": {
"products": ["The products field is required."]
}
}
Session Not Found
{
"error": "Session not found"
}