Skip to main content
Zentra uses conventional HTTP response codes and returns detailed error information to help you debug issues quickly.

Error Response Format

All errors follow this structure:

Error Object

HTTP Status Codes

2xx Success

4xx Client Errors

5xx Server Errors

Error Codes

Authentication Errors

Validation Errors

Resource Errors

Transaction Errors

Rate Limiting Errors

Server Errors

Handling Errors

JavaScript/Node.js

Python

PHP

Best Practices

Wrap all API calls in try-catch blocks and handle different error types appropriately.
Error messages may change. Always check the code field for programmatic error handling.
Include the request_id from error responses when contacting support.
For 5xx errors and rate_limit_exceeded, implement exponential backoff retry logic.
Don’t expose raw error messages to users. Map errors to friendly messages.
Track error rates in your application to catch issues early.

Retry Logic

For transient errors (network issues, timeouts, server errors), implement retry logic:

Error Monitoring

Integrate error tracking tools like Sentry:

Getting Help

If you encounter errors you don’t understand:
  1. Check this error reference
  2. Search our FAQ
  3. Contact support with the request_id from the error response
  4. Review Support and escalation paths

Next Steps

Rate Limits

Learn about rate limiting

Webhooks

Handle events asynchronously

Testing

Test error scenarios in sandbox

FAQ

Common questions and answers