Overview
Errors
API error codes and handling
The Chariow API uses conventional HTTP response codes to indicate success or failure.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
API error codes and handling
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorised |
| 403 | Forbidden |
| 404 | Not Found |
| 422 | Validation Error |
| 429 | Rate Limited |
| 500 | Server Error |
{
"message": "Error description",
"data": [],
"errors": {
"field_name": ["Validation error message"]
}
}
{
"message": "The given data was invalid.",
"data": [],
"errors": {
"email": ["The email field is required."],
"product_id": ["The selected product_id is invalid."]
}
}
{
"message": "No query results for model [App\\Models\\Product].",
"data": [],
"errors": []
}
{
"message": "Rate limit exceeded. Please retry after 60 seconds.",
"data": [],
"errors": []
}
Was this page helpful?