Skip to content
MUI’s hosted AI Assistant backend shuts down at the end of 2026.Switch in two lines →
  • Products
    • AG Grid AI Toolkit Early accessThe model and the server behind the toolkit.
    • MUI X Data Grid StableThe backend for the Premium AI Assistant.
    • TanStack Table Public alphaA plugin that applies each answer to your table.
    • AG Studio Early accessA hosted backend for its assistant, not built yet.
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
Sign inStart a 7-day trial
Menu
  • Products
    • AG Grid AI Toolkit Early access
    • MUI X Data Grid Stable
    • TanStack Table Public alpha
    • AG Studio Early access
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
  • Sign in

Product

  • How it works
  • Accuracy
  • Pricing
  • Data and security

Grids

  • AG Grid AI ToolkitEarly access
  • MUI X Data Grid PremiumStable
  • TanStack TablePublic alpha
  • AG StudioEarly access

Docs

  • Quickstart: server route
  • Browser keys
  • Guide: when MUI’s service retires

Company

  • Contact
  • Terms
  • Privacy

Not affiliated with or endorsed by MUI or AG Grid. MUI and AG Grid are trademarks of their respective owners.

© 2026 Gridsay

Docs pages
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core
On this page

On this page

  1. A declined question
  2. Every response that is not an answer
  3. Failures in the browser
  4. What to show in the panel
  5. Next
Skip to the article
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core

Refusals and errors

On this page

  1. A declined question
  2. Every response that is not an answer
  3. Failures in the browser
  4. What to show in the panel
  5. Next

When a question cannot be answered, the grid changes nothing and its AI Assistant panel shows one sentence. The sentence is for your user; the status, the code and the detail are for you.

A declined question#

Gridsay declines a question the grid cannot show: a column that does not exist, a condition on a total, an edit, a feature your grid has switched off. The model writes the sentence, in the user's language:

Ask

departments with more than 100 people

ChangesNo change
Refused

I can't filter on counts of people per department, since that would be a condition on an aggregate.

Your user reads this sentence. The table stays as it was.
Ask

Delete all rows

ChangesNo change
Refused

I can't delete rows.

Your user reads this sentence. The table stays as it was.

The response has status 422:

JSON
{  "ok": false,  "statusCode": 422,  "code": "query_not_understood",  "message": "I can't filter on counts of people per department, since that would be a condition on an aggregate.",  "detail": "The question could not be applied to this table. Check the columns and enabled features sent by your resolver. Request …; find it at /app/usage."}

A declined question is charged at the tier that answered it, because a model read it: on an auto key, the tier Gridsay picked for that question. It appears on the Usage page; detail names its request id. When the model wrote no sentence of its own, the user reads "I couldn't apply that request to this table. Try rephrasing it."

Each feature page lists what it declines: filtering, sorting, grouping, aggregation, pivoting, charts.

Every response that is not an answer#

StatuscodeYour user seesWhenCharged
422codequery_not_understoodYour user seesThe model's sentenceWhenThe question cannot be applied to this tableChargedYes
502codeupstream_unavailableYour user seesThe assistant is temporarily unavailable. Try again.WhenThe model failed or gave an unusable answerChargedNo
503codeupstream_unavailableYour user seesThe assistant is temporarily unavailable. Try again.WhenA service Gridsay needs is not available, or your sign-in provider could not be reachedChargedNo
400codeinvalid_requestYour user seesThe assistant could not read this request.WhenThe body is not what the grid sends: check that your route forwards it unchangedChargedNo
413codecontext_too_largeYour user seesThis table is too large for the assistant.WhenThe question would send the model more than 72 KiB, or the body is over 2 MB: fewer or shorter example values, descriptions or columnsChargedNo
401codeinvalid_api_keyYour user seesThe assistant is not available right now.WhenThe key is missing, mistyped, disabled or revokedChargedNo
401codeunauthenticated_userYour user seesSign in to use the assistant.WhenA publishable key's question has no valid sign-inChargedNo
403codeorigin_not_allowedYour user seesThe assistant is not available on this site.WhenThe page's origin is not on the key's listChargedNo
403codeforbiddenYour user seesThe assistant is not available right now.WhenA publishable key has no sign-in method yetChargedNo
402codequota_exceededYour user seesThe assistant is not available right now, or has reached its usage limit.WhenNo plan, the trial's allowance is used, or a payment is overdueChargedNo
402codebilling_limit_exceededYour user seesThe assistant has reached this month's limit.WhenYour organization reached its spending capChargedNo
429coderate_limitedYour user seesThe assistant is busy. Try again in N seconds; or today's or this month's limit; or your rule's sentenceWhenA limit you set for the key or the userChargedNo
429coderate_limitedYour user seesToo many attempts. Try again in N seconds.WhenToo many failed sign-ins from one addressChargedNo
429coderate_limitedYour user seesThe assistant is not available right now. Try again later.WhenToo many questions failed lately for this organization, user or keyChargedNo
429coderate_limitedYour user seesThe assistant is busy. Try again in a moment.WhenToo many questions in progress at onceChargedNo
500codeinternal_errorYour user seesSomething went wrong. Try again in a moment.WhenAn unexpected failureChargedMaybe. Check Usage before sending again.

A 502 is not charged, but with a publishable key it still counts against the user's limits. For a 429, retryAfter is the number of seconds to wait, when Gridsay knows it.

Failures in the browser#

Some failures happen before a question reaches Gridsay, or after its response leaves. The Gridsay helper gives each a code:

codeYour user seesWhen
unauthenticated_userYour user seesSign in to use the assistant.WhengetToken threw or returned nothing. Nothing was sent. Also a 401 whose body names no other code, such as your route's own sign-in check
unexpected_errorYour user seesThe assistant couldn't complete your request. Try again.WhenYour headers function threw. Nothing was sent; what it threw is in cause
connection_failedYour user seesThe connection was interrupted. Try again.WhenNo response arrived, or it was cut off
not_jsonYour user seesThe assistant couldn't respond. Try again.WhenThe response was not JSON. With status 404, the url is usually wrong
invalid_answerYour user seesThe assistant couldn't complete your request. Try again.WhenThe response was not an answer the grid can apply, or an error without a sentence

The short onPrompt function from From the browser shows the same sentences for no sign-in and no answer, without codes.

What to show in the panel#

  • Show message as it is. MUI's grid does this for you: it puts the thrown error's message in the panel.
  • Never show detail: it is for you, and names your settings.
  • Compare codes, never messages: the sentences may change.
  • To log why a question failed, wrap the helper and read the error's code, status, retryAfter and detail:
TSX
import {  createPromptResolver,  GridsayError,  type PromptResolver,} from '@gridsay/mui-x-data-grid'; const resolve = createPromptResolver({ url: '/api/ai-assistant', apiRef }); const onPrompt: PromptResolver = async (query, context, conversationId) => {  try {    return await resolve(query, context, conversationId);  } catch (error) {    if (error instanceof GridsayError) {      // code, status, retryAfter and detail are for you; never show detail to your user.      console.warn('[Gridsay]', error.code, error.status, error.detail);    }    throw error; // the grid shows error.message in its assistant panel  }};

Next#

  • Reference
  • Follow-up questions
  • From the browser