Skip to main content
Sohar uses standard HTTP response codes to indicate whether an API request succeeded. A response with a 4xx status code indicates an issue with the request. A response with a 5xx status code indicates an issue processing the request.

Response Format

Error responses can include an error value and the request parameter that caused the error:
Some endpoints also return your optional id value to help identify the request. Fields that do not apply to an error are omitted.

Response Codes

Handling Errors

Correct the request before retrying a 4xx response, except for 429. Retry 429, 500, and 503 responses with exponential backoff and jitter. When retrying a supported create request, reuse its idempotency key.