Gridstate

Handle API errors

Read RFC 9457 problem details, choose a retry policy, and trace a failed request.

Gridstate returns RFC 9457 problem details with a stable error code and request ID. Use those fields to decide whether to change or retry the request.

Read the problem response

Errors use the application/problem+json content type:

{
  "type": "/v1/error-codes/invalid_query",
  "title": "Invalid query",
  "status": 400,
  "code": "invalid_query",
  "requestId": "req_1234567890123",
  "docUrl": "/v1/error-codes/invalid_query"
}

Request docUrl without a credential to retrieve remediation for the returned code.

Choose an action from the status

Use the HTTP status and stable code together:

StatusMeaningAction
400Malformed request, unsupported query, or unsupported API versionCorrect the request
401Missing or invalid credentialReplace the credential
403Valid credential without the required scopeUse a correctly scoped key
404Missing or intentionally concealed resourceVerify the resource ID and tenant
409State or idempotency conflictReuse the original request or create a new key
422Semantically invalid requestCorrect the submitted values
429Rate or concurrency limit exceededWait for the returned retry interval
503Temporary dependency or release failureRetry with bounded backoff

Retry only temporary failures

Retry 429 and 503 with bounded exponential backoff and jitter. Do not retry other 4xx responses without changing the request.

Keep the request ID

Log requestId with the operation that failed. Gridstate support uses it to trace one request without exposing your API key or request body.

On this page