GGateYourWay API
Status RU Create key
Reliability

Errors and retries

Public errors are provider-neutral. Use the HTTP status, error.code, and request ID.

01

Error envelope

json
{
  "error": {
    "type": "gateway_error",
    "code": "capacity_limited",
    "message": "GateYourWay capacity is temporarily limited. Please retry later."
  }
}

For diagnosable inference responses, X-GYW-Request-ID links the client error to the server record.

02

Retry matrix

HTTPCode / classRetryAction
400 / 422invalid_requestNoFix the body, parameters, or model ID.
401Key errorNoCheck the header and key state.
402Insufficient balanceAfter top-upAdd balance.
403Scope or accessNoUse the correct key/group.
404model_not_foundNoRefresh the model catalog.
410model_retiredNoMove to the indicated replacement.
429capacity_limitedYesExponential backoff with jitter.
502 / 503 / 504route_unavailableYesUse a short bounded retry.
03

Backoff

Start at 500-1000 ms, double the delay, add random jitter, and cap the number of attempts. Do not retry after the client has received useful streaming output.