PlatformIntegrations
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-…"
}
PropertyTypeDescription
messagestringShort explanation, for logs.
errorCodestringMachine-readable error code, such as InvalidRequest, ResourceNotFound or ApiVersionNotSupported. Not on 5xx or throttled 429 responses.
requestIdstringIdentifier 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

CodeMeaning
200Request succeeded.
201Resource created.
204Success with no response body.
400Invalid request — a required parameter is missing or malformed.
401Authentication failed. Check your client ID and client secret.
403Authenticated but not authorized for this action.
404The resource doesn't exist, or your app can't access it. Inaccessible resources return 404, not 403.
409Request conflicts with current state (for example, duplicate create).
422Semantically invalid for this domain.
429Rate limit exceeded — back off and retry.
500Internal 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