Skip to main content

Error Response Format

All Zochil API errors follow a consistent structure to help you handle them programmatically:

HTTP Status Codes

The API uses standard HTTP status codes to indicate the success or failure of requests:

Common Error Codes

Authentication Errors

Validation Errors

Resource Errors

Business Logic Errors

Error Handling Best Practices

1. Always Check the Response Status

2. Handle Different Error Types

3. Implement Retry Logic

4. User-Friendly Error Messages

Rate Limiting

The API implements rate limiting to ensure fair usage:
  • Standard endpoints: 100 requests per minute
  • Authentication endpoints: 10 requests per minute
  • Upload endpoints: 10 requests per minute
When rate limited, you’ll receive:

Logging and Monitoring

For production applications, implement proper error logging:

Next Steps

Authentication

Learn about API authentication

Pagination

Handle paginated responses