Error Codes

Reference of all Forge error codes.

Error Codes

Forge uses standard HTTP status codes along with detailed error objects in the response body. All errors follow a consistent format.

Error Response Format

{
  "error": {
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Please retry after 30 seconds.",
    "type": "rate_limit_error",
    "param": null,
    "retry_after": 30
  }
}

HTTP Status Codes

CodeTypeDescription
400invalid_request_errorThe request was malformed or missing required parameters.
401authentication_errorInvalid, expired, or missing API key.
402payment_requiredx402 payment required for this feature or module.
403permission_errorAPI key lacks permission, or feature not available on current tier.
404not_foundRequested resource does not exist.
409conflictResource conflict (e.g., duplicate agent name).
422validation_errorRequest passed parsing but failed validation.
429rate_limit_errorToo many requests. Check retry_after in response.
451security_blockRequest blocked by ForgeGuard security pipeline.
500internal_errorUnexpected server error. Contact support if persistent.
502provider_errorUpstream LLM provider returned an error.
503service_unavailableAll providers unavailable or service is in maintenance.
504timeout_errorRequest timed out waiting for provider response.

Forge-Specific Error Codes

CodeDescription
forge_routing_failedNo suitable model found for the request constraints.
forge_security_blockedRequest blocked by security pipeline (S1-S7).
forge_memory_unavailableMemory service is temporarily unavailable.
forge_tier_insufficientFeature requires a higher subscription tier.
forge_budget_exceededCost budget exceeded for this request or period.
forge_circuit_openCircuit breaker tripped due to excessive cost or errors.
forge_connect_auth_failedConnected app authentication failed or expired.