Skip to main content

RecordQueryErrorKind

@gravity-rail/react


@gravity-rail/react / RecordQueryErrorKind

Type Alias: RecordQueryErrorKind

RecordQueryErrorKind = "validation" | "access" | "cost_exceeded" | "request_failed"

What went wrong with a query request, from the status and body the server sends (lib/routes/workspace/queries.py):

  • validation: 400, the query is invalid (unknown field, operator not legal for the field, too large); or 422 Validation failed, the request body does not fit the query schema (errors lists each problem).
  • access: 403, the session lacks a scope or field access the query needs; see requiredScope.
  • cost_exceeded: 422 with a query cost N exceeds budget M detail. Add a where or a smaller limit.
  • request_failed: any other failure (for example 401, 5xx).