GraphQL errors
errors array. Inspect extensions.code; validation and input errors can include field details, while internal errors are masked. A GraphQL response can contain errors with HTTP 200, so do not rely on the HTTP status alone. Capture the x-request-id response header for support; the request ID is not promised inside GraphQL extensions.
HTTP errors before GraphQL execution
Authentication and admission can reject a request before GraphQL execution. These responses use HTTP error statuses. Authentication errors use a JSONerror object with code, message, and requestId (and sometimes details); an oversized body returns its budget, limit, and attempted size. The current checked-in handler returns 400 for invalid JSON or query budgets, 401 for missing or invalid credentials, 403 for a disallowed origin or credential state, 413 for a body over its configured size budget, 415 for a non-JSON GraphQL POST, 429 for an exhausted request budget, and 503 when authentication is unavailable. Use x-request-id from the response header when contacting support.
Request budgets and retries
User sessions and workspace API tokens use distinct request admission paths, and API-token budgets can vary. Do not assume a universal per-token rate. Rate-limited responses includex-ratelimit-limit and x-ratelimit-reset, and may include x-ratelimit-remaining; a rejected 429 includes Retry-After. Wait as instructed before making another request. These headers describe rate admission, not GraphQL parser, query depth, query cost, or body-size budgets; reduce the operation or request size when one of those budgets rejects it.
Do not automatically retry a mutation after a timeout or connection failure: the server may have completed the write even when the client did not receive its result. Check the operation’s outcome before deciding what to do next. Repeating invalid input or a request without permission will not resolve the error.