API ReferenceGetting Started
Errors
Understand error responses from the Obligo API.
The API uses conventional HTTP status codes. Successful requests return 2xx. Client errors return 4xx. Server errors return 5xx.
Error responses are a flat JSON object with message, errorCode and requestId. There are two exceptions: 5xx responses have no errorCode, and a throttled 429 response has only message. See Rate Limits.
Error response
{
"message": "The api version is not supported",
"errorCode": "ApiVersionNotSupported",
"requestId": "f3b9c2d4-…"
}| Property | Type | Description |
|---|---|---|
message | string | Short explanation, for logs. |
errorCode | string | Machine-readable error code, such as InvalidRequest, ResourceNotFound or ApiVersionNotSupported. Not on 5xx or throttled 429 responses. |
requestId | string | Identifier of the request. Also in the X-Request-ID header. Not in the body of throttled 429 responses, but the header is still sent. |
Validation errors don't list the invalid fields.
HTTP status codes
| Code | Meaning |
|---|---|
| 200 | Request succeeded. |
| 201 | Resource created. |
| 204 | Success with no response body. |
| 400 | Invalid request — a required parameter is missing or malformed. |
| 401 | Authentication failed. Check your client ID and client secret. |
| 403 | Authenticated but not authorized for this action. |
| 404 | The resource doesn't exist, or your app can't access it. Inaccessible resources return 404, not 403. |
| 409 | Request conflicts with current state (for example, duplicate create). |
| 422 | Semantically invalid for this domain. |
| 429 | Rate limit exceeded — back off and retry. |
| 500 | Internal server error — retry later; contact support if it persists. |
Use errorCode for programmatic handling, and fall back to the HTTP status when it's missing.
Next: Rate Limits