Reference
Errors
The problem+json error model, every platform error code and how each SDK surfaces it.
Every API error is an RFC 9457 application/problem+json document:
| Field | Meaning |
|---|---|
type |
https://docs.gebsecure.com/errors/<code> — the error's page on this site |
title |
the machine-readable code |
status |
the HTTP status |
detail |
a human-readable message (never contains secrets) |
instance |
the request path |
details |
structured details: validation issues, reason for access-policy denials, approval ids… |
requestId, traceId |
identify the request in logs and traces |
Codes#
The codes are read from packages/common/src/errors.ts when the site is built; each links to its own page.
| Code | HTTP | Meaning |
|---|---|---|
bad_request |
400 | The request is malformed (unparseable JSON, wrong content type, an invalid header). |
payload_too_large |
413 | The request body exceeds the size limit (2 MiB) and was refused before parsing (HTTP 413). |
unsupported_media_type |
415 | The request body uses a content type the endpoint does not accept (HTTP 415). |
validation_failed |
422 | The request is well-formed but a field is missing or invalid. details lists the issues. |
unauthenticated |
401 | No credentials, or the credentials are invalid, expired or revoked. |
forbidden |
403 | The caller is authenticated but not allowed to do this. details.reason distinguishes organization access policies. |
not_found |
404 | The resource does not exist or is not visible to the caller (tenant isolation hides other organizations’ resources). |
conflict |
409 | The request conflicts with the current state of the resource. |
precondition_failed |
412 | A precondition of the operation is not met. |
rate_limited |
429 | Too many requests. The response carries Retry-After. |
quota_exceeded |
429 | A usage limit is exhausted. Reported as HTTP 429 like rate_limited. |
payment_required |
402 | The organization’s subscription is past due or suspended (HTTP 402). Usage is limited to Free plan quotas and plan changes are blocked until the balance is settled. |
approval_required |
403 | The operation needs a human approval before it can proceed. |
policy_denied |
403 | A policy denied the action. Denials of agent actions are normally results, not errors. |
upstream_error |
502 | A system GebSecure called on the caller’s behalf failed (connector API, MCP server, database). |
timeout |
504 | The operation did not complete in time (HTTP 504). |
unavailable |
503 | The service or a dependency is temporarily unavailable (HTTP 503). |
internal |
500 | An unexpected server error (HTTP 500). |
details.reason of forbidden#
| Reason | Meaning |
|---|---|
wrong_region |
the organization's data resides in another region (details.region); use that region's endpoint |
org_pending_deletion |
the organization is scheduled for deletion |
ip_not_allowed |
the client address is not in the organization's IP allowlist |
sso_required |
the organization enforces single sign-on |
mfa_required |
the organization requires MFA and this session has not verified a second factor |
See Troubleshooting for what to do in each case.
SDK error types#
| Code | TypeScript | Python | Go | Java | .NET |
|---|---|---|---|---|---|
unauthenticated |
AuthenticationError |
AuthenticationError |
ErrAuthentication |
AuthenticationException |
AuthenticationException |
forbidden |
PermissionDeniedError |
PermissionDeniedError |
ErrPermissionDenied |
PermissionDeniedException |
PermissionDeniedException |
policy_denied |
PolicyDeniedError |
PolicyDeniedError |
ErrPolicyDenied |
PolicyDeniedException |
PolicyDeniedException |
approval_required |
ApprovalRequiredError |
ApprovalRequiredError |
ErrApprovalRequired |
ApprovalRequiredException |
ApprovalRequiredException |
bad_request, validation_failed |
ValidationError |
ValidationError |
ErrValidation |
ValidationException |
ValidationException |
not_found |
NotFoundError |
NotFoundError |
ErrNotFound |
NotFoundException |
NotFoundException |
conflict, precondition_failed |
ConflictError |
ConflictError |
ErrConflict |
ConflictException |
ConflictException |
rate_limited, quota_exceeded |
RateLimitError |
RateLimitError |
ErrRateLimit |
RateLimitException |
RateLimitException |
upstream_error |
UpstreamError |
UpstreamError |
ErrUpstream |
UpstreamException |
UpstreamException |
timeout |
TimeoutError |
GatewayTimeoutError |
ErrTimeout |
GatewayTimeoutException |
GatewayTimeoutException |
unavailable |
UnavailableError |
UnavailableError |
ErrUnavailable |
UnavailableException |
UnavailableException |
internal, unknown 5xx |
InternalError |
InternalError |
ErrInternal |
InternalException |
InternalException |
| other codes | ApiError |
APIError |
ErrAPI |
ApiException |
ApiException |
| network failure (status 0) | ConnectionError |
APIConnectionError |
ErrConnection |
ConnectionException |
GebSecureConnectionException |
Client-side errors also include approval waits (ApprovalTimeoutError, ApprovalNotGrantedError and their
equivalents), SimulationFailedError (simulation_failed, carrying the run) and configuration errors
(invalid_configuration).