Subotiz uses conventional HTTP status codes to indicate the success or failure of an API request.
Common Status Code Ranges:
- 2xx: Indicates success.
- 4xx: Indicates client-side errors (e.g., missing required parameters, payment decline, invalid request format).
- 5xx: Indicates an error occurred on the Subotiz server during processing.
Error Format
When a request fails, error details are returned in a fixed structured format:
| Parameter | Type | Description |
|---|---|---|
| code | string | Business error code |
| message | string | Reason for the error |