Skip to main content

Error Handling

The PostSyncer API uses standard HTTP status codes and returns detailed error messages to help you debug issues quickly.

HTTP Status Codes

Error Response Format

All error responses follow this format:

Common Error Codes

Authentication Errors

Validation Errors

Rate Limit Errors

Best Practices

Check Status Codes

Always check HTTP status codes before processing responses

Handle Rate Limits

Implement retry logic for 429 responses with exponential backoff

Log Errors

Log detailed error information for debugging

Validate Input

Validate data before sending to avoid 422 errors