Errors

The REST API reports every failure as a problem document with the content type application/problem+json. The slug names the error; the HTTP status says what kind.

JSON
{  "type": "https://api.veryfront.com/errors/resource-not-found",  "title": "Resource Not Found",  "status": 404,  "detail": "Project does-not-exist-xyz not found",  "instance": "/projects/does-not-exist-xyz",  "slug": "resource-not-found",  "category": "RESOURCE",  "suggestion": "Verify the resource ID exists and you have access to it."}
FieldMeaning
slugStable name of the error. Match on this, not on detail.
statusThe HTTP status.
categoryAUTH, RESOURCE, VALIDATION, DATABASE, SUBSCRIPTION, INTEGRATION or INTERNAL.
detailWhat went wrong in this request.
suggestionWhat to do about it.
errorsOn a validation failure, one entry per field: field, message, code.

A validation failure names each field:

JSON
{  "status": 400,  "slug": "validation-failed",  "detail": "name: Required",  "errors": [{ "field": "name", "message": "Required", "code": "invalid_type" }]}

Look up an error

GET /errors lists every error with its status, category and suggestion. GET /errors/{slug} adds the steps to fix it and related errors. Neither needs a key.

Shell
curl https://api.veryfront.com/errors/resource-not-found

Common errors

StatusSlugFix
400validation-failedCheck the body against the endpoint's reference.
401authentication-requiredSend a valid key. See Authentication.
402insufficient-creditsBuy credits or upgrade the plan.
402ai-budget-exceededRaise the monthly AI budget, or wait for it to reset.
403authorization-deniedUse a credential with the permission.
403key-model-deniedCall a model on the key's model list.
404resource-not-foundCheck the ID and your access to its project.
409resource-already-existsUse a different name, or update the existing one.
413webhook-payload-too-largeSend a payload of 64 KiB or less.
429key-rate-limitedWait for Retry-After. See Limits.
503service-unavailableRetry in a few minutes.

The AI Gateway

The AI Gateway's /ai/v1 endpoints answer in the error shape of the SDK that calls them, so that SDK can read it: { "error": { "message", "type", "code" } } for OpenAI-style calls, and the Anthropic and Google equivalents. A provider's own error is passed through in that shape.

JSON
{  "error": {    "message": "Authentication failed. Provide a Veryfront API key as a Bearer token in the Authorization header, or in x-api-key.",    "type": "authentication_error",    "param": null,    "code": "unauthorized"  }}

Errors in Studio, chat and a run's events have their own page: Fix errors.