Errors

Every error code returned by grad-server, what it means, and how to fix it.

All errors use application/problem+json. Match programmatically on code (stable across releases); treat title and detail as human-readable text. Include request_id (also returned in the x-request-id header) when reporting an issue.

JSON
{
  "type": "https://gradiated.com/problems/integration_in_use",
  "title": "Conflict",
  "status": 409,
  "code": "integration_in_use",
  "detail": "Integration 'langfuse' is used by sources src_3f9c0a1b2c3d4e5f60718293 (dataset support-prod); remove those first (or wait for the imports and runs to finish).",
  "used_by": {
    "count": 1,
    "sources": [
      { "id": "src_3f9c0a1b2c3d4e5f60718293", "dataset": "support-prod" }
    ],
    "imports": [],
    "runs": []
  },
  "request_id": "req_6f1c3a0e-5d2b-4b8e-9f43-0a7d2c9e1b55"
}

All four SDKs raise typed errors carrying status, code, message, and request_id, and automatically retry 408, 429 (except queue_limit), 500, 502, 503, and 504 up to twice with the same Idempotency-Key.

CLI exit codes (--json writes {"ok": false, "error": {...}} to stderr):

  • 2 — invalid flags or usage
  • 3 — authentication or permission error (401, 403)
  • 4 — not found (404)
  • 5 — conflict or validation error (409, 422)
  • 6 — feature unavailable (501 or cloud_training_unavailable)
  • 7 — waited run, eval, or import ended unsuccessfully
  • 8 — eval regression gate failed (eval_regressed)
  • 9 — agent eval exceeded --max-error-rate (eval_error_rate)
179 codes

200400401403404409410413422429500501502503

Requests and auth

cross_site_request403

AUTH_MODE=none only: a browser request from another site, which would act as the platform admin.

Fix Add the page's origin to GRAD_CORS_ORIGINS, or run with AUTH_MODE=api_key.

forbidden403

The key lacks the scope this endpoint needs; the message names it. Naming an integration also needs integrations:read.

Fix Create a key with that scope (grad keys create --scopes ...) or use an admin key. See API key scopes.

host_not_allowed403

AUTH_MODE=none only: the request's Host is a public DNS name, which could be a DNS-rebinding page.

Fix Reach the server by localhost, an IP or a compose service name, or serve the domain with AUTH_MODE=api_key.

idempotency_key_invalid422

Idempotency-Key isn't 1 to 255 visible ASCII characters.

Fix Send a UUID. The SDKs send one on every POST.

idempotency_key_reused422

This Idempotency-Key was used before with a different body.

Fix Use a new key for a new request; reuse a key only to retry the same request.

idempotency_replay_unavailable409

A retried POST /v1/keys with the same key: the first request created the key, and its secret is shown only once.

Fix List the keys to find it, or revoke it and create a new one.

invalid_cursor422

The cursor isn't one this list returned.

Fix Pass next_cursor (or tail_cursor for metrics) back unchanged; start over without a cursor.

invalid_period422

A usage period is empty: from must be before to.

key_not_found404

No API key with this id in the workspace.

malformed_request400

The body isn't valid JSON.

Fix Send Content-Type: application/json with a JSON body. The SDKs never send this.

not_event_stream200

TypeScript and Go: the run event stream (GET /v1/runs/{id}/events) answered with something other than text/event-stream, usually a proxy or cache that ignores the Accept header. The SDKs raise a decode error instead of reconnecting.

Fix Let Accept: text/event-stream through to grad-server, and turn off response buffering and caching for /v1/runs/*/events.

payload_too_large413

The JSON body is over 32 MiB.

Fix Push records in smaller batches (the SDKs send 8-16 MiB), or upload a file with POST /v1/uploads and import it.

route_not_found404

No route matches the method and path.

Fix Check the base URL: grad-server serves /v1/... on port 8787 (grad local up publishes 18787).

too_many_streams429

This key already holds the most open event streams (SSE) it may.

Fix Close a stream, or poll the JSON page with tail_cursor instead.

unauthorized401

No API key, or the key is unknown, revoked or expired.

Fix Send Authorization: Bearer <key>. The SDKs and CLI read GRADIATED_API_KEY or the profile GRADIATED_PROFILE names; grad config shows which one they use.

unknown_field422

The body has a field the endpoint doesn't take, usually a typo. Request bodies are strict, nested objects included. detail names the field's path and the closest match (recipe.adapter.merge_on_exprot: unknown field (did you mean 'merge_on_export'?)) or lists valid fields at that level.

Fix Rename or remove the field as suggested; see the API reference. Free-form maps (metadata, pricing, score maps, and record contents) accept any key. SDKs raise ValidationError and the CLI catches the same typos before sending.

validation_error422

A field is missing, has the wrong type or is out of range. detail names each one with its path, separated by ; (recipe.epochs: Too small: expected number to be >=1).

Fix Fix the fields detail names and compare with the endpoint in the API reference. The SDKs raise ValidationError with those fields parsed: .errors in Python, fieldErrors in TypeScript, FieldErrors in Go.

workspace_deleted403

The workspace was deleted and its data is being removed.

workspace_suspended403

The workspace is suspended: it can't start new jobs, and running jobs stop at their next checkpoint.

Fix Contact the workspace's admin, or Gradiated support on Gradiated Cloud.

Datasets and imports

dataset_exists409

A dataset with this name already exists (or, for a filter, the name belongs to another dataset).

Fix Push to it instead of creating it, or pick another name.

dataset_in_use409

The dataset cannot be deleted while referenced by runs, evals, sources, or an active import; detail names the referencing resource.

Fix Wait for active imports to finish, or remove referencing sources before deleting the dataset.

dataset_not_found404

No dataset with this name in the workspace.

Fix grad datasets list shows the names; datasets.push() creates a dataset as it pushes.

dataset_part_missing410

Part of this dataset version is missing from object storage (the bucket was lost, or restored from a backup older than the database), so its records can't be read. Retrying won't help.

Fix Push or import the records again as a new version.

dataset_version_not_found404422

The dataset has no such version; the message names its current version.

empty_dataset422

The dataset version has zero records.

Fix Push records or wait for the import to finish, then plan again.

import_not_found404

No import job with this id.

invalid_filter422

A score condition isn't <op><number> (>=0.8, ==1; ops >= <= > < == !=).

invalid_upload_format422

A staged dataset push declared format: "jsonl.gz" (or gzip bytes) that failed gzip decompression.

Fix Verify the staged upload is valid UTF-8 JSONL or gzipped JSONL and retry.

no_usable_records422

None of the records has the shape this recipe trains on; the message lists why for each kind of record.

Fix Check the record shapes in Trajectories, and preview with grad render.

records_batch_conflict409

A record push reused a batch number for different records.

Fix Let the SDK number the batches, or give each push its own Idempotency-Key.

render_conflict422

A record contradicts the render settings: a trained turn has reasoning with thinking="off" or none with thinking="on" (an empty <think></think> is none), train: true is set on a non-assistant message, or a tool_calls entry isn't an object. The message names the record and message.

Fix Use thinking="auto", set train only on assistant messages, or fix the records.

render_unsupported_model422

The model isn't a chat model in the catalog, so there is no chat template to render.

Fix grad models list shows the catalog.

too_many_records422

A staged synchronous dataset push contains more records than allowed in one synchronous commit.

Fix Use POST /v1/datasets/{name}/imports (client.datasets.import_file(...) or grad import) for larger datasets.

unknown_upload422

upload_id isn't an upload id: it is the file's sha256 (64 hex characters).

upload_incomplete409

The upload hasn't arrived in storage yet.

Fix PUT the file to the upload URL from POST /v1/uploads first, then create the import. The SDKs do both.

upload_integrity_error422

The uploaded bytes don't match the sha256 the upload was created with.

Fix Upload the file again; check nothing rewrote it on the way (proxies, line-ending conversion).

upload_too_large422

A staged synchronous dataset push (POST /v1/datasets/{name}/records with upload_id) exceeds the compressed or uncompressed size cap.

Fix Use POST /v1/datasets/{name}/imports (client.datasets.import_file(...) or grad import) for larger files.

Runs and recipes

adapter_conflict422

Continued training keeps the starting artifact's LoRA rank and alpha, and the recipe asked for different ones.

Fix Omit recipe.adapter, or match the artifact's.

adapter_not_supported422

The base model doesn't support this adapter kind; the message lists the ones it does.

budget_exhausted409

The run has spent its max_cost_usd.

Fix Resume it with a higher cap: grad runs resume RUN --max-cost-usd N.

cartridge_context_required422

A cartridge recipe needs the document to compress.

Fix Pass recipe.context_text (Context.from_file(...) reads a local file).

checkpoint_eval_code_scorer422

recipe.evals has code scorers; evals during training take judges, regexes and validators only.

Fix Run code scorers in an eval of run.artifact after training.

continued_training_unsupported422

The starting artifact can't be trained further: it has no recorded LoRA adapter, or it is a merged model.

Fix Continue from an artifact trained with merge_on_export=false.

distill_context_needs_on_policy422

recipe.context is read by the teacher during on-policy distillation, so it can't be combined with rollout=OffPolicy().

distill_teacher_is_student422

The teacher is the student model.

Fix Pass a larger teacher, or a context= the teacher reads and the student doesn't.

distill_teacher_required422

Distillation needs teacher=.

Fix Pass a larger catalog model (such as qwen/qwen3-14b), or with rollout=OffPolicy() an artifact or any model your inference endpoint serves.

distill_teacher_unsupported422

On-policy distillation loads the teacher in the trainer, which takes catalog models only.

Fix To learn from an artifact, pass rollout=OffPolicy().

distill_tokenizer_mismatch422

On-policy distillation needs teacher and student to share a tokenizer.

Fix Pick a teacher from the student's family, or pass rollout=OffPolicy().

duplicate_checkpoint_eval422

Two recipe.evals have the same name.

Fix Pass name= to tell evals on the same dataset apart.

invalid_decision_schema422

A DecisionModelRecipe dataset has a malformed questions definition or an expected_output value that doesn't match its declared choice, noul, or score schema.

Fix Ensure every question declares a valid type (choice, noul, score) and criteria, and that expected_output maps question names to valid answers.

loss_unsupported422

This recipe doesn't train with that loss (or chooses its own).

max_seq_len_exceeds_context422

recipe.max_seq_len exceeds the chosen encoder model's max_context_tokens window.

Fix Lower max_seq_len to fit the encoder's context limit, or choose a longer-context encoder (baai/bge-m3, nomic-ai/nomic-embed-text-v1.5, or qwen/qwen3-embedding-0.6b).

merged_export_too_large422

merge_on_export=true on a base whose merged bf16 weights are bigger than an artifact may be (5 GiB): every catalog base from qwen/qwen3-4b up. The plan refuses it before anything trains.

Fix Train with merge_on_export=false and merge the downloaded adapter locally: PeftModel.from_pretrained(base, dir).merge_and_unload().

model_exceeds_gpu_memory422

The model (with its teacher, for distillation) needs more GPU memory than one training GPU has.

Fix Pick a smaller model or teacher; see the GPU memory column in Supported models.

queue_limit429

The workspace already has the most queued runs, imports, evals and trainers it may (GRAD_MAX_QUEUED_PER_WORKSPACE, 500 by default). The SDKs don't retry it.

Fix Wait for queued jobs to start, or cancel some, then create the job again.

recipe_deferred422

This recipe kind is deferred past v0 (Wave 2). Supported managed recipes are sft, dpo, grpo, router, decision, cartridge, embedding, distill, and reward.

Fix Use a supported managed recipe (including GRPORecipe for single-turn verifiable RL) or the Trainer API for custom loops.

recipe_not_supported_for_model422

The base model can't train this recipe; the message lists the models that can.

Fix See Supported models.

recipe_param_conflict422

A recipe field and the same setting inside recipe.loss disagree.

Fix Set one of them.

recipe_param_invalid422

A recipe-specific parameter failed semantic validation (for example, duplicate values in matryoshka_dims).

Fix Fix the parameter named in detail and re-plan the run.

recipe_param_unsupported422

A recipe field doesn't apply to this recipe; the message names the recipes it belongs to.

reward_rubric_unsupported422

RewardModelRecipe(rubric=...) takes the name of a score already on your records, not judge or validator items.

reward_score_out_of_range422

Reward scores must be in [0, 1]; the message names the record.

router_candidates_required422

A router needs scores for at least two candidate models.

Fix Pass recipe.models, or train on records scored for two or more models.

router_fallback_not_candidate422

recipe.fallback isn't one of the candidate models.

router_pricing_not_candidate422

recipe.pricing names a model that isn't a candidate.

router_score_out_of_range422

Router scores must be in [0, 1]; the message names the record.

run_not_cancellable409

The run already finished.

run_not_found404

No run with this id in the workspace.

run_not_resumable409

Only a stopped, failed or cancelled run resumes. A run cancelled a moment ago may still be stopping its worker.

Fix Wait a few seconds and resume again.

run_state_changed409

The run changed while this request was handled.

Fix Retry the request.

run_unbuildable409

Something the run needs (its dataset version, labeling eval or starting artifact) is gone, so its job can't be built.

scorer_sandbox_unavailable422

A training recipe's rubric has code scorers, which need a managed sandbox (coming soon).

Fix Score your records first and pass the score name (rubric="..."), or use judges, regexes and validators.

unknown_model422

The model is neither a trainable base model nor an artifact in this workspace; the message suggests a close match.

Fix grad models list (GET /v1/base-models) shows the trainable models; artifacts are name@version or name@latest.

Trainers

artifact_not_trainable422

The from_artifact passed to POST /v1/trainers isn't a peft_lora artifact whose base model supports trainers.

Fix Pass a peft_lora artifact trained on a supported causal LM base.

budget_exceeded409

The op's worst-case token cost would pass the trainer's max_cost_usd cap.

Fix Close or export the trainer (optim_step, save_state, export, render and close still work at the cap), or resume from its checkpoint with a higher max_cost_usd.

checkpoint_not_resumable422

The from_checkpoint passed to POST /v1/trainers isn't a trainer saved-state checkpoint.

Fix Pass a checkpoint returned by trainer.save_state(), autosave or parking.

datum_too_long422

A token datum or token sample prompt (plus max_tokens) exceeds the trainer's max_seq_len (min(model.max_context_tokens, 32768)).

Fix Shorten the prompt or lower max_tokens to fit trainer.max_seq_len.

incompatible_adapter422

The checkpoint or artifact named in sample(weights=...) isn't a peft_lora or trainer_state LoRA adapter.

Fix Hot-swap only peft_lora artifacts or trainer saved-state checkpoints.

incompatible_base_model422

The checkpoint or artifact named in sample(weights=...) was trained on a different base model than the warm sampler session.

Fix Open a sampler on the matching base model, or swap adapters trained on the same base.

invalid_datum422

A datum is missing fields its loss reads (weights, coefficients, sampling_logprobs or advantages), has a non-zero weight/coefficient at index 0, has an out-of-vocabulary token id, or is a chat messages sample prompt already at or over max_seq_len (chat prompts with room left clamp max_tokens automatically).

Fix Check token-array lengths and index-0 weights, shorten the prompt below trainer.max_seq_len, or build RL datums with Datum.from_sample / Datum.from_trajectory and grad.with_advantages.

invalid_result422

Worker protocol: the worker posted a malformed or mismatched op result payload.

invalid_weights422

The weights selector on sample isn't valid here (for example, hot-swapping checkpoint:<id> or artifact:<id> on a mode: "train" trainer, or a malformed selector).

Fix Open a mode: "sample" session (client.open_sampler(...)) to hot-swap checkpoint:<id>, artifact:<id>, base or initial.

missing_checkpoint422

Worker protocol: parking a mode: "train" trainer requires a saved checkpoint_id.

op_out_of_order409

Worker protocol: the worker posted an op result out of seq order.

request_key_conflict409

A sample-lane request_key was reused on the same snapshot with a different request body.

Fix Use a fresh request_key for each distinct sample request; reuse one only when retrying the identical call.

sample_only_trainer422

A training or checkpoint-mutation op (forward_backward, optim_step, save_state or export) was sent to a mode: "sample" trainer.

Fix Use sample, forward, render or snapshot on a sampler, or open a mode: "train" trainer to update weights.

sample_too_large422

The sample op asks for more than 1,048,576 generated tokens (prompts × num_samples × max_tokens).

Fix Split the prompts across multiple sample calls or lower num_samples / max_tokens.

seq_conflict409

The train-lane op's seq isn't the trainer's next_seq, or a resend of that seq carried a different body. detail names the expected seq.

Fix Read trainer.next_seq and send ops in order. The SDKs assign seq automatically and resync after a dropped connection.

snapshot_not_found404

No snapshot with this seq exists on this trainer.

snapshot_released409

The snapshot was released explicitly or expired after snapshot_ttl_s; queued samples on it fail loudly.

Fix Take a fresh snapshot with trainer.snapshot().

too_many_snapshots409

The trainer already holds max_snapshots (1–8, default 4) pending or live snapshots; snapshots are never silently evicted.

Fix Release an unused snapshot (snap.release() or DELETE /v1/trainers/{id}/snapshots/{seq}), or create the trainer with a higher max_snapshots.

trainer_not_found404

No trainer with this id in the workspace.

trainer_op_not_found404

No op with this id on this trainer.

trainer_unsupported_model422

The requested model cannot run in an interactive Trainer session (for example, embedding encoders are not causal LMs).

Fix Use a causal LM from grad models list for Trainer, or use EmbeddingRecipe to fine-tune embedding encoders.

uncalibrated_model422

optim_step asked for lr: "auto", but the base model has no calibrated learning rate for the requested objective (sft, rl, dpo).

Fix Pass an explicit numeric lr (check trainer.calibrated_lrs to see calibrated objectives for this base model).

wrong_upload_kind422

Worker protocol: a trainer upload ticket only accepts checkpoint or artifact kinds.

Media and multimodal

invalid_media422

The image or audio payload is corrupt, empty, not valid base64, or not a supported PNG/JPEG/WebP image or RIFF/WAVE audio file (0.05–30 s, 8–96 kHz, 1–2 channels).

Fix Encode a valid PNG, JPEG, WebP or PCM WAV file (use grad.Image / grad.Audio or image_part / audio_part).

invalid_media_role422

An image or audio content part appeared inside a system or assistant message.

Fix Attach media parts only on user or tool messages.

invalid_media_uri422

An image URL used a remote or local URI scheme (http://, https://, file://), or a dataset/offline-eval record used a Trainer-API-scoped grad://media/med_… or input_audio.media_id reference.

Fix Pass inline data:image/(png|jpeg|webp);base64,… URIs for datasets and offline evals (zero SSRF: workers never fetch external URLs), or grad://media/med_… / media_id on Trainer API calls.

media_not_found404

No uploaded media object with this med_… id in the workspace.

Fix Upload the image or WAV audio first with POST /v1/media (client.media.upload(...) or grad.Image.upload(...)).

media_too_large422

An image exceeds 5 MiB, a WAV clip exceeds 10 MiB, or total decoded media in one trainer op exceeds 20 MiB.

Fix Resize or compress the media, or split the batch across smaller ops.

too_many_media_items422

A datum carries more than 8 images, more than 4 audio clips, or more than 8 total media items.

Fix Keep at most 8 images, 4 audio clips and 8 total media items per example.

unsupported_media_type422

POST /v1/media received a Content-Type other than application/json, image/png, image/jpeg, image/webp or audio/wav.

Fix Send JSON {kind, mime, data} or raw bytes with one of the supported image/audio MIME types.

unsupported_modality422

The input carries a modality (image, audio or video) that this base model, recipe or eval target does not support, or adapter.train_multimodal_projector was enabled on a text-only base model.

Fix Use a multimodal base model (check modalities on GET /v1/base-models or Supported models) with SFTRecipe, DPORecipe, off-policy DistillRecipe, RewardModelRecipe, the Trainer API, or multimodal evals.

Checkpoints and artifacts

artifact_import_not_found404

No artifact import with this id.

artifact_not_found404

No artifact with this id, name@version or name@latest.

artifact_not_servable409422

The artifact can't be served for an eval: it is a reference bundle (the reference trainer's output), or Gradiated Cloud can't serve its format.

checkpoint_conflict409

A checkpoint for this step of this attempt already exists with different contents.

checkpoint_expired410

The checkpoint passed its retention TTL (ttl_s, checkpoint_ttl_s, or checkpoint_ttl_days) and its weights were swept.

Fix Keep important checkpoints longer with PATCH /v1/checkpoints/{id} (grad checkpoints update ID --permanent), or promote/export them as artifacts.

checkpoint_not_exportable409

The checkpoint holds training state only; the recipe didn't export it as an artifact.

Fix Promote the run's final artifact, or a checkpoint that has a format.

checkpoint_not_found404

No checkpoint with this id in the workspace.

Fix Check the checkpoint id on the run or trainer (grad runs get / grad runs checkpoints).

format_base_mismatch422

The format and the base model disagree: encoder_safetensors needs an encoder base model, every other format a causal LM.

invalid_format422

Unknown artifact format.

invalid_manifest422

The bundle's manifest doesn't match the import (for a Hub import, its provenance must name the commit imported).

manifest_mismatch409

The bundle's manifest names a different format or base model from the import's.

name_required422

An artifact upload needs a name. The SDKs default it to the file or directory name.

Evals and scoring

baseline_mismatch422

baseline_eval does not match the new eval's dataset, version, rubric hash, environment fingerprint, samples, max_turns or temperature.

Fix Compare against a baseline eval run on the exact same dataset version, rubric, environment version and sampling settings.

duplicate_model422

The eval's models list names the same model or policy label twice.

Fix Give each evaluated model or policy a unique name.

duplicate_scorer422

Two rubric items have the same name.

empty_eval422

The dataset version has no records with a usable prompt.

environment_not_found404

No registered environment matches the given env_... id or name@version reference in this workspace.

Fix Run grad envs list to see available environments, or push one with grad envs push.

environment_version_exists409

An environment with this name and explicit version already exists in the workspace (environment versions are immutable).

Fix Omit version to auto-increment (v1, v2, …), or pick a new version tag.

eval_incomplete409

POST /v1/evals/{id}/complete was called before every (model, task, sample) output cell was posted.

Fix Read GET /v1/evals/{id}/outputs?fields=key, post the remaining outputs, then call /complete again.

eval_not_awaiting_outputs409

Rollout outputs or /complete can only be posted while an agent eval (mode: "env") is awaiting_outputs.

eval_not_awaiting_scores409

Scores can only be posted while the eval is awaiting_scores.

eval_not_cancellable409

The eval already finished.

eval_not_client_driven409

POST /v1/evals/{id}/outputs and /complete only apply to client-driven agent evals created with env (mode: "env").

eval_not_completed409

Results are available once the eval completes.

Fix Wait for it: ev.wait() or grad evals wait EVAL.

eval_not_found404

No eval with this id.

inference_error502

The inference or judge endpoint answered with an error; that output records it.

inference_unavailable501503

No inference endpoint is configured for standalone evals (501), or it is unreachable (503).

Fix On Gradiated Cloud, standalone eval gateway routing is still rolling out (coming soon); use in-run held-out eval reports or open_sampler in the meantime. Self-hosted, set GRAD_INFERENCE_BASE_URL (and GRAD_JUDGE_BASE_URL); grad local up --dev-models starts a CPU endpoint for the test models.

insufficient_paired_tasks422

Regression gating requires at least 30 paired tasks between the candidate and baseline.

Fix Evaluate on a dataset (or limit) with at least 30 tasks before enabling gate.

invalid_baseline422

Both baseline and baseline_eval were set on the same eval request.

Fix Pass either baseline (a model in this eval) or baseline_eval (a previous completed eval), not both.

invalid_environment_bundle422

The uploaded .tar.gz environment bundle is malformed, exceeds the 64 MiB limit, contains unsafe archive entries, or is missing required Harbor/sandbox files.

Fix Validate the directory locally with grad envs verify <dir> before pushing.

invalid_gate422

A regression gate was configured without a baseline or baseline_eval, or its baseline isn't in models.

Fix Pass baseline (included in models) or baseline_eval alongside gate.

invalid_model_label422

An agent-eval (mode: "env") policy label contains disallowed characters or exceeds the length limit.

Fix Use a short label with letters, digits, ., _, /, @, : or -.

unknown_eval_output422

A posted score names an output that isn't part of this eval.

unknown_judge_model422

The judge is neither a priced judge on this server nor an artifact in the workspace.

Fix Self-hosted, operators add judges with GRAD_JUDGE_MODELS_JSON; on grad local up --dev-models use test/tiny-judge.

unknown_scorer422

The scorer named isn't one of this eval's code scorers.

Integrations and sources

integration_ambiguous422

The workspace has several integrations of this provider, so integration can't be left out; integrations lists their names.

Fix Pass integration (--from NAME, --integration NAME).

integration_changed409

Gradiated Cloud: the integration's host or credentials changed while this request ran, so nothing was written.

Fix Read the integration again and retry.

integration_credentials_invalid422

A credential field this provider doesn't take, or a required one missing; the message lists the provider's fields.

integration_credentials_required422

Changing an integration's host needs every credential again, in the same request, so credentials never go to a host they weren't given for.

integration_deleted409

The source's integration was deleted.

Fix Connect the provider again and add a new source, or delete the source.

integration_exists409

The workspace already has an integration with this name.

Fix Choose another name, or rotate the existing one with grad integrations update NAME.

integration_host_invalid422

The host isn't a public https:// URL, or it was given for Hugging Face, whose host is fixed.

integration_host_not_allowed422

An integration's credentials may only go to its own host, and this request would send them elsewhere.

Fix Use an integration whose host is the one you need, or change its host (with its credentials).

integration_host_required422

MLflow integrations need host: the MLflow tracking URI.

integration_in_use409

Sources, running imports or running training jobs use this integration; the message and used_by list them.

Fix Remove those sources first, or wait for the imports and runs to finish.

integration_not_found404422

No integration with this name in the workspace (404 on /v1/integrations/{name}, 422 where a source, import or logger names it).

Fix grad integrations list shows them; connect one with grad integrations add PROVIDER.

integration_provider_mismatch422

The named integration is for another provider than the source, import or logger needs.

integration_required422

This source or logger needs an integration of its provider, and the workspace has none.

Fix Connect one first: grad integrations add PROVIDER.

integration_unreadable409

A source's integration credentials can't be read; the message says why (for example, they were stored under another GRAD_SECRETS_KEY).

Fix Enter the credentials again: grad integrations update NAME.

invalid_schedule422

The schedule isn't a five-field UTC cron (*/15 * * * *), or it can never fire (0 0 30 2 *, or the 31st in months that have 30 days).

Fix Use a cron that fires at least once a year. The day fields follow Vixie cron: when one starts with * (*/2), a day must match both.

secrets_unavailable501

This server has no key for storing integration credentials.

Fix Set GRAD_SECRETS_KEY to 32 random bytes in base64 (openssl rand -base64 32). The compose file and Helm chart generate one.

source_filter_invalid422

A filter value has the wrong shape, or from isn't before to.

source_filter_unsupported422

This provider has no such filter; the message lists its filters.

source_integration_unsupported422

The gradiated source reads the workspace's own gateway traces and takes no integration.

Fix Leave integration out.

source_not_found404

No source with this id.

source_project_required422

Braintrust and PostHog sources need project.

source_provider_required422

The source names neither an integration nor a provider kind.

Fix Pass integration (--from NAME), or the provider kind when the workspace has exactly one integration of it.

source_provider_unsupported422

grad can't sync from this provider; the message lists the ones it can.

Fix Export traces to a file and grad import it, or push records with dataset.push().

source_removed409

The source was removed, so there is nothing to sync.

source_unavailable501

The gradiated source isn't available on this server; it is coming soon on Gradiated Cloud.

Fix Connect your observability tool instead (Langfuse, LangSmith, Braintrust, PostHog).

source_upstream_error502

The trace provider answered a sync with an error.

source_upstream_unavailable503

The trace provider couldn't be reached.

Server and capacity

database_unavailable503

PostgreSQL is unreachable or overloaded. Sent with Retry-After: 1; the SDKs retry.

internal_error500

An unexpected server error.

Fix Retry (the SDKs do); if it persists, report it with the request_id.

shutting_down503

GET /health/ready on a replica that is draining before it stops, so load balancers send traffic elsewhere.

Fix Nothing to do: retry, and another replica answers.

storage_object_missing500

Data the request needs is missing from object storage: it was lost, or the bucket was restored from a backup older than the database.

Fix Restore the bucket from a backup taken after the database's, or report it with the request_id.

storage_unavailable503

Object storage (S3) is unreachable or overloaded. Sent with Retry-After: 1; the SDKs retry.

store_unavailable503

GET /health/ready: the training store failed its readiness check.

Gradiated Cloud

auth_unavailable503

Gradiated Cloud's authentication couldn't be reached to check the key.

billing_denied403

The workspace's balance can't cover the run or eval.

Fix Top up, then resume with the same cap.

billing_unavailable503

Billing can't be reached, or the price list hasn't refreshed for 24 hours, so new jobs can't be priced.

checkpoint_evals_unsupported_on_cloud422

recipe.evals (evals of each checkpoint during training) isn't supported on Gradiated Cloud yet.

Fix Drop recipe.evals and evaluate run.artifact after training.

cloud_training_unavailable404

The configured server returned a bare 404 without a problem code on a training route (CLI exit code 6) — for example, a proxy or endpoint where the training API isn't mounted.

Fix Verify your --base-url / GRADIATED_BASE_URL (use https://api.gradiated.com for Gradiated Cloud, or run grad local up with export GRADIATED_PROFILE=local).

integrations_unavailable503

Gradiated Cloud's integrations store couldn't be reached or answered with an error; scheduled syncs retry without counting a failure.

Fix Retry shortly.

keys_managed_by_cloud501

With AUTH_MODE=cloud, keys are created and revoked in the Gradiated console, not /v1/keys.

By HTTP status

400 Malformed request
malformed_request
401 Authentication required
unauthorized
413 Payload too large
payload_too_large
422 Unprocessable request
adapter_conflict, adapter_not_supported, artifact_not_servable, artifact_not_trainable, baseline_mismatch, cartridge_context_required, checkpoint_eval_code_scorer, checkpoint_evals_unsupported_on_cloud, checkpoint_not_resumable, continued_training_unsupported, dataset_version_not_found, datum_too_long, distill_context_needs_on_policy, distill_teacher_is_student, distill_teacher_required, distill_teacher_unsupported, distill_tokenizer_mismatch, duplicate_checkpoint_eval, duplicate_model, duplicate_scorer, empty_dataset, empty_eval, format_base_mismatch, idempotency_key_invalid, idempotency_key_reused, incompatible_adapter, incompatible_base_model, insufficient_paired_tasks, integration_ambiguous, integration_credentials_invalid, integration_credentials_required, integration_host_invalid, integration_host_not_allowed, integration_host_required, integration_not_found, integration_provider_mismatch, integration_required, invalid_baseline, invalid_cursor, invalid_datum, invalid_decision_schema, invalid_environment_bundle, invalid_filter, invalid_format, invalid_gate, invalid_manifest, invalid_media, invalid_media_role, invalid_media_uri, invalid_model_label, invalid_period, invalid_result, invalid_schedule, invalid_upload_format, invalid_weights, loss_unsupported, max_seq_len_exceeds_context, media_too_large, merged_export_too_large, missing_checkpoint, model_exceeds_gpu_memory, name_required, no_usable_records, recipe_deferred, recipe_not_supported_for_model, recipe_param_conflict, recipe_param_invalid, recipe_param_unsupported, render_conflict, render_unsupported_model, reward_rubric_unsupported, reward_score_out_of_range, router_candidates_required, router_fallback_not_candidate, router_pricing_not_candidate, router_score_out_of_range, sample_only_trainer, sample_too_large, scorer_sandbox_unavailable, source_filter_invalid, source_filter_unsupported, source_integration_unsupported, source_project_required, source_provider_required, source_provider_unsupported, too_many_media_items, too_many_records, trainer_unsupported_model, uncalibrated_model, unknown_eval_output, unknown_field, unknown_judge_model, unknown_model, unknown_scorer, unknown_upload, unsupported_media_type, unsupported_modality, upload_integrity_error, upload_too_large, validation_error, wrong_upload_kind
429 Too many requests
queue_limit, too_many_streams
500 Internal server error
internal_error, storage_object_missing