API error codes
From BizKitHub Docs, the API reference
Every error the BizKitHub API can return. Each response carries a stable
errorCode next to the HTTP status. Match on the code, not on the message, because messages may be reworded. For codes in the platform log, see system log codes./
Status
Categories
| Description | ||
|---|---|---|
| PlatformRaised by the platform itself (auth, rate limits, infrastructure).6 errors | ||
| INTERNAL | Can not determinate user IP.Failed to detect user IP address from HTTP request. | HTTP 500 |
| INTERNAL | Comgate merchant is configured for production but only test mode is enabled on the gateway side.BizKitHub holds the Comgate gateway instance with environment="p" (production), but a pre-flight probe against the Comgate API returned error code 1308 ("Production environment is not enabled for you, it is enabled testing environment only"). Forwarding a customer to the gateway in this state would produce a broken payment page for every order. The platform refuses to create the payment until the misconfiguration is fixed. | HTTP 503 |
| INTERNAL | Fio API is temporarily unavailable.The upstream Fio bank API did not return a parseable response within the timeout window. The most common causes are scheduled Fio maintenance, a token that was just rotated, or a brief network glitch between Vercel and Fio. The raw response body is appended to the error message for debugging. | HTTP 502 |
| INTERNAL | Fio bank statement is malformed.A statement file received from Fio (GPC or transaction JSON) is missing required fields or breaks the expected structure (no 074 header, empty payload, unparseable transaction line). The offending row or snippet is appended to the error message. | HTTP 502 |
| INTERNAL | Fio API token is inactive.Fio refused the request with `<status>error</status>`. This almost always means the API token stored in `shop__bank` for this account has been revoked, expired, or never activated. Fio tokens must be activated manually in Fio internet banking and have a fixed validity window. | HTTP 502 |
| INTERNAL | Inserting order failedAn error occurred while inserting the order into the database. Failed to create order after multiple attempts | HTTP 500 |
| Public APIReturned by public /api/v1 endpoints to API-key clients.1 error | ||
| PUBLIC | The storage limit of the organisation is reached. New files are not accepted until data is removed or a higher storage plan is active.Every organisation has one shared storage (Drive, attachments, images, backups). Without a backup/storage plan it is capped at 100 GB; with a plan the cap is the included storage plus 20 % (Basic 120 GB, Pro 1.2 TB, Enterprise 6 TB). A new upload is rejected when the stored data plus the uploads in progress plus the new file would exceed the cap. Reading and downloading existing data always works. | HTTP 507 |
Error response format
Every error has the same JSON shape. hint is present when the code has a description, and documentationUrl links straight to the code's page here.
application/json · AI_CONTEXT_NOTE_LIMIT_EXCEEDED
{
"state": "error",
"code": 429,
"message": "The organisation has too many context notes.",
"errorCode": "AI_CONTEXT_NOTE_LIMIT_EXCEEDED",
"hint": "The shared organisation context is loaded into every AI agent session, so the number of notes is capped. The organisation reached the cap.",
"documentationUrl": "https://docs.bizkithub.com/errors/AI_CONTEXT_NOTE_LIMIT_EXCEEDED"
}HTTP status classes
4xx · Client error
HTTP 4xx. The request needs fixing before a retry.
- 400
- Bad request: invalid or missing input
- 401
- Unauthorized: missing or invalid API key or session
- 403
- Forbidden: authenticated, but not allowed
- 404
- Not found: the resource does not exist
- 429
- Too many requests: back off and retry later
5xx · Server error
HTTP 5xx. The platform failed. Retry after a delay.
- 500
- Internal server error
- 502
- Bad gateway: an upstream provider failed
- 503
- Service unavailable: temporary outage or maintenance
- 504
- Gateway timeout: an upstream provider did not answer in time