Skip to main content

Overview

The Akhara API uses conventional HTTP status codes to indicate success or failure. Errors include a structured JSON body with details to help you diagnose and fix issues.

HTTP Status Codes

Success Codes

Client Error Codes

Server Error Codes


Error Response Format

All errors return a consistent JSON structure:

Error Fields


Error Types

authentication_error

Issues with API key authentication.

authorization_error

Valid authentication but insufficient permissions.

invalid_request_error

Request structure or parameters are invalid.

resource_error

Issues with the requested resource.

validation_error

Semantic validation of request data failed.

rate_limit_error

Request rate limit exceeded.

quota_error

Usage quota exceeded.

server_error

Internal server errors.

Error Handling Best Practices

Retry Logic

Implement exponential backoff for retryable errors:

Error Categories

Handle errors by category:

Logging Errors

Always log the request_id for support:

Common Error Scenarios

Creating a Dataset

Running an Evaluation

Submitting a Review


Status Page

Check real-time API status at: status.akhara.ai Subscribe to incident notifications for proactive alerts.

Rate Limits

Understanding rate limits and quotas

Support

Contact support with your request_id