Error Codes
All Hubrix API errors follow RFC 9457 Problem Details with Content-Type: application/problem+json.
Example error response
{
"type": "https://api.hubrix.ai/errors/insufficient_credits",
"title": "Insufficient credits",
"status": 402,
"detail": "This action requires 40 credits; current balance is 13.",
"instance": "/v1/research",
"request_id": "req_01HZ3K9abc123"
}| Error type | HTTP | Title |
|---|---|---|
| invalid_credentials | 401 | Invalid credentials |
| mfa_required | 401 | MFA required |
| session_expired | 401 | Session expired |
| token_invalid | 401 | Token invalid |
| api_key_invalid | 401 | API key invalid |
| forbidden | 403 | Forbidden |
| plan_feature_not_included | 403 | Feature not included in plan |
| invite_expired | 403 | Invitation expired |
| insufficient_credits | 402 | Insufficient credits |
| not_found | 404 | Not found |
| conflict | 409 | Conflict |
| validation_error | 422 | Validation error |
| quota_exceeded | 429 | Quota exceeded |
| rate_limited | 429 | Rate limited |
| upstream_provider_error | 502 | Upstream provider error |
| upstream_timeout | 504 | Upstream provider timeout |
| internal_error | 500 | Internal server error |
Need help? Include the request_id from the error response when contacting api@hubrix.ai.