Skip to main content
The Buena.ai API uses conventional HTTP status codes and returns detailed error information to help you debug issues quickly.

Error Response Format

All errors follow a consistent JSON format:

Fields

HTTP Status Codes

2xx Success

  • 200 OK - Request succeeded - 201 Created - Resource created - 204 No Content - Request succeeded, no content

4xx Client Errors

  • 400 Bad Request - Invalid request - 401 Unauthorized - Invalid API key
  • 403 Forbidden - Insufficient permissions - 404 Not Found - Resource not found - 429 Too Many Requests - Rate limited

5xx Server Errors

  • 500 Internal Server Error - Server issue - 502 Bad Gateway - Upstream error - 503 Service Unavailable - Temporary unavailability

Common Error Codes

Authentication Errors

UNAUTHORIZED (401)

Causes:
  • Missing x-api-key header
  • Invalid API key format
  • Expired API key
  • Deactivated API key

PERMISSION_DENIED (403)

Causes:
  • API key lacks required permission
  • Attempting to access restricted resource

Validation Errors

VALIDATION_ERROR (400)

Causes:
  • Missing required fields
  • Invalid field formats
  • Invalid field values

INVALID_LINKEDIN_URL (400)

Rate Limiting Errors

RATE_LIMIT_EXCEEDED (429)

Resource Errors

NOT_FOUND (404)

DUPLICATE_RESOURCE (409)

Integration Errors

LINKEDIN_NOT_CONNECTED (400)

ENRICHMENT_CREDITS_EXHAUSTED (402)

Error Handling Best Practices

Always check the HTTP status code before parsing the response:
Different errors require different handling strategies:
Retry transient errors with exponential backoff:
Log errors with appropriate detail levels:

Language-Specific Examples

JavaScript/TypeScript

Python

Error Monitoring

Setting Up Alerts

Need Help?

If you’re experiencing persistent errors or need assistance:

Check Status Page

See if there are any known issues

Contact Support

Email our support team with error details

Discord Community

Get help from other developers

Documentation

Review the full API reference
When contacting support, please include:
  • API key prefix (first 8 characters)
  • Error response with timestamp
  • Request details (endpoint, method, payload)
  • Expected vs actual behavior