Skip to main content

Error Response Format

All error responses follow this structure:

Error Fields

HTTP Status Codes

2xx - Success

4xx - Client Errors

5xx - Server Errors

Error Codes

Authentication Errors

Validation Errors

Resource Errors

Rate Limit Errors

Payment Errors

Wallet Errors

Error Examples

Validation Error (422)

Rate Limit Error (429)

Authentication Error (401)

Not Found Error (404)

Handling Errors by Type

Validation Errors

Rate Limit Errors

Authentication Errors

Retry Strategy

Exponential Backoff

Idempotent Retries

For state-changing operations, use idempotency keys:

Request ID Tracking

Every error response includes a requestId. Use this when contacting support:

Common Error Scenarios

Cause: Malformed JSON in request body.Solution: Validate JSON syntax before sending.
Cause: apiKey or appId headers missing.Solution: Include both headers in every request.
Cause: API key lacks required permissions.Solution: Generate key with appropriate scopes.
Cause: Incorrect URL path.Solution: Verify endpoint path in documentation.
Cause: Resource already exists.Solution: Use unique identifiers or update existing.
Cause: Rate limit exceeded.Solution: Implement exponential backoff or upgrade plan.

Monitoring Errors

Dashboard

Monitor API errors in the XentFi Dashboard:
  • Error rate by endpoint
  • Top error codes
  • Recent failures
  • Request ID lookup

Webhooks

Configure error alerting via webhooks:

Support

When contacting support, always include:
  • The requestId from the error response
  • Timestamp of the error
  • Request details (method, endpoint, body)
  • Response headers
Contact: api-support@xentfi.com