Skip to main content

Error Handling

Proper error handling is essential for building robust integrations with Cambrionix Connect APIs.

Error Response Format

All API errors follow a consistent format.

HTTP Status Codes

APIs use standard HTTP status codes.

Common Error Codes

Validation Errors

Validation errors occur when request parameters or body are invalid.

Authentication Errors

Authentication errors occur when credentials are invalid or expired.

Not Found Errors

Not found errors occur when a requested resource doesn't exist.

Handling Errors

Implement proper error handling in your application to handle different error scenarios gracefully.

Retry Logic

Implement retry logic for transient errors.

Best Practices

  1. Always check status codes: Don't assume success
  2. Parse error responses: Extract useful information from error details
  3. Log errors: Log errors for debugging and monitoring
  4. Implement retries: Use exponential backoff for transient errors
  5. Handle edge cases: Account for network errors and timeouts