Errors
The Stokzone API uses standard HTTP status codes. Error responses return in a consistent JSON format.
Error format
All error responses include a detail field carrying a human-readable message:
JSON
{
"detail": "İstek gövdesi doğrulanamadı"
}HTTP status codes
| Code | Meaning |
|---|---|
200 | OK — the request completed successfully. |
201 | Created — a new record was created successfully. |
400 | Bad Request — body or parameter validation failed. |
401 | Unauthorized — API key is missing or invalid. |
403 | Forbidden — the key lacks the required scope or the IP is restricted. |
404 | Not Found — the requested record does not exist. |
409 | Conflict — the record conflicts with current state (e.g. duplicate SKU). |
429 | Too Many Requests — rate limit exceeded, wait for Retry-After. |
500 | Server Error — an unexpected condition occurred, retry. |