HTTP Status & Error Responses
Errors & Status Codes
Fobign returns standard HTTP status codes along with structured JSON error bodies following the OpenAI specification.
| Code | Category | Description |
|---|---|---|
| 200 OK | Success | Inference executed successfully. |
| 400 Bad Request | Malformed Payload | Invalid JSON structure or unsupported model parameter. |
| 401 Unauthorized | Authentication Error | Missing, malformed, or revoked secret API key. |
| 402 Payment Required | Insufficient Wallet Balance | Wallet balance depleted. Please top up funds on platform.fobign.com. |
| 429 Rate Limited | Rate Limit Exceeded | Requests exceeded configured RPM or TPM capacity. |
| 502 Bad Gateway | Upstream Unavailable | Primary and secondary upstream provider clusters unreachable. |
Standard Error JSON Response
{
"error": {
"message": "Insufficient developer wallet balance. Please top up your balance at platform.fobign.com.",
"type": "insufficient_balance",
"param": null,
"code": "insufficient_balance"
}
}