Skip to main content

Error Response Format

Failed requests return status: false with a descriptive message:

HTTP Status Codes

Bila uses standard HTTP status codes.

Success Codes

Client Error Codes

Server Error Codes

Common Error Messages

Authentication Errors

Validation Errors

Resource Not Found

Duplicate Reference

Insufficient Balance

Handling Errors

Best Practices

Don’t rely solely on HTTP status codes. Always check the status field in the response body.
Log the error message for debugging purposes.
For 5xx errors and rate limiting, implement exponential backoff retry logic.
Account for scenarios like network timeouts, invalid JSON responses, and service unavailability.