Skip to main content
Proper error handling is crucial for building robust integrations with the Infinite API. This guide covers error types, best practices, and recovery strategies.

Error Response Format

All API errors follow a consistent JSON format:

Error Fields

  • error - Error type/category
  • message - Human-readable error description
  • statusCode - HTTP status code
  • details - Array of field-specific validation errors (when applicable)
  • requestId - Unique request identifier for debugging

HTTP Status Codes

Infinite uses standard HTTP status codes to indicate success or failure:

2xx Success

4xx Client Errors

5xx Server Errors