Common Error Codes
The MDB Enrichment API uses standard HTTP status codes and provides detailed error responses to help you troubleshoot issues quickly.Error Response Format
All errors follow a consistent JSON structure:Authentication Errors (401)
Invalid API Key
x-api-key header.
Expired API Key
Malformed API Key
Authorization Errors (403)
Insufficient Permissions
Account Suspended
Billing & Usage Errors (402, 429)
Billing Limit Exceeded
Rate Limit Exceeded
retry_after value.
Request Errors (400)
Invalid Request Format
Missing Required Parameters
Invalid Parameter Value
Service Errors (404, 500)
Endpoint Not Found
Internal Server Error
request_id.
Service Temporarily Unavailable
Best Practices for Error Handling
1. Always Check Status Codes
2. Implement Retry Logic
3. Log Error Details
Always log the error code and request ID for debugging:Getting Help
If you encounter errors not listed here or need assistance:- Check your dashboard at mdb.tools for account status
 - Contact support at hello@midbound.ai
 - Include error codes and request IDs in your support requests for faster resolution