Skip to content

Errors

Every error code of the open API: what it means and what to do. Each error response links here in its type.

On this page

The problem object

Every error from the open API is an RFC 9457 problem with Content-Type: application/problem+json:

Example response
{
  "type": "https://perafly.com/docs/errors/project_name_taken",
  "title": "Project name is taken",
  "status": 409,
  "code": "project_name_taken",
  "detail": "Another project already uses this name.",
  "instance": "/v1/projects",
  "requestId": "req_…"
}
FieldMeaning
typeThe page for this code: https://perafly.com/docs/errors/<code>.
titleA short summary of the code. In English, or in Turkish with Accept-Language: tr.
statusThe HTTP status code.
codeThe stable code. It doesn't change between versions; base decisions on it.
detailWhat happened this time, when there's more to say. Same language as title.
instanceThe request path, without the query string.
requestIdThe request's id. Include it when you contact support.

Some problems carry extra fields: path and reason (a blocked file), missing (files still to upload), errors: [{ field, code }] (validation), limit, used and upgradeTo (plan limits), execution (approvals), interval (polling) and periodEnd (paused builds).

Handling errors

  • Switch on code, not on title, detail or the HTTP status alone.
  • 429 and 503 are safe to retry: wait for Retry-After when it's there. Retry POST requests with the same Idempotency-Key.
  • 403 approval_required isn't a failure: a teammate has to approve. Continue with the execution instead of starting again.
  • The CLI keeps the API's code in its --json errors and maps statuses to exit codes; see CLI.

All error codes

104 codes

Authentication and permissions

Authentication and permissions
CodeHTTP statusTitle
forbidden403Not allowed
team_suspended403The team is suspended
unauthorized401Authentication required

Sign-in and handoff

Sign-in and handoff
CodeHTTP statusTitle
access_denied400The request was denied
authorization_pending400Waiting for approval
device_code_unavailable503A code could not be created
expired_token400The code expired or was already used
invalid_handoff400Invalid handoff link
slow_down400Polling too fast

Approvals

Approvals
CodeHTTP statusTitle
approval_declined403The request was declined
approval_expired410The approval request expired
approval_pending409Waiting for approval
approval_required403Approval required

Not found

Not found
CodeHTTP statusTitle
not_found404Not found

Invalid request

Invalid request
CodeHTTP statusTitle
payload_too_large413Request body is too large
validation_error400Invalid request

Project names

Project names
CodeHTTP statusTitle
project_name_invalid400Invalid project name
project_name_taken409Project name is taken
project_name_unavailable503No project name available

Publishing and versions

Publishing and versions
CodeHTTP statusTitle
file_too_large413File is too large
files_invalid400Invalid file entry
files_required400Files are required
path_blocked422File is not allowed
path_case_conflict422Paths differ only by case
path_duplicate422Duplicate path
path_invalid422Invalid path
path_too_long422Path is too long
path_traversal422Path leaves the project
sha256_invalid422Invalid sha256
size_invalid422Invalid size
too_many_files413Too many files
upload_incomplete409Some files were not uploaded
upload_mismatch422Uploaded content does not match
upload_token_invalid401Upload URL is invalid or expired
version_is_live409Version is live
version_not_ready409Version is not ready
version_state_conflict409Version is not in a valid state for this action
version_too_large413Version is too large

Retries

Retries
CodeHTTP statusTitle
idempotency_key_in_progress409A request with this idempotency key is in progress
idempotency_key_reused422Idempotency key was used with a different request

Plan and usage limits

Plan and usage limits
CodeHTTP statusTitle
data_quota_exceeded429Monthly data request limit reached
included_usage_exhausted402Included usage is used up
plan_feature_unavailable402Not included in your plan
plan_limit_collections402Collection limit reached
plan_limit_domains402Domain limit reached
plan_limit_projects402Project limit reached
plan_limit_records402Record limit reached
plan_limit_sftp_accounts402SFTP account limit reached
plan_limit_storage402Storage limit reached
plan_limit_storage_file402File is larger than the plan allows
spend_limit_reached402Spend limit reached

Rate limits

Rate limits
CodeHTTP statusTitle
anonymous_project_limit429Too many projects without an account
rate_limited429Too many requests

Service availability

Service availability
CodeHTTP statusTitle
docs_unavailable503Docs search is unavailable
hosting_unavailable503Hosting is unavailable
internal_error500Internal error

Acceptable use

Acceptable use
CodeHTTP statusTitle
content_blocked451A file is blocked on Perafly
project_taken_down403The project was taken down

Project configuration

Project configuration
CodeHTTP statusTitle
config_file_not_allowed422Use perafly.jsonc instead of vercel.json
config_invalid422perafly.jsonc is not valid

Data

Data
CodeHTTP statusTitle
collection_exists409A collection with this name already exists
collection_not_found404Collection not found
field_not_indexed400Field is not indexed
field_type_change409A field's type cannot change
record_not_found404Record not found
record_too_large413Record is too large
relation_not_found422Linked record not found
rule_requires_person403A person must open this to the public
too_many_indexes400Too many indexed fields

Storage and SFTP

Storage and SFTP
CodeHTTP statusTitle
sftp_account_not_found404SFTP account not found
sftp_key_invalid400Not a valid SSH public key
size_mismatch400Uploaded size does not match
storage_exists409A file already exists at the target
storage_not_found404File not found
storage_path_invalid400Path must start with public/ or private/

Environment variables

Environment variables
CodeHTTP statusTitle
env_not_found404Environment variable not found
env_reserved409This name is reserved
env_too_large413Too many environment variables

Sharing and domains

Sharing and domains
CodeHTTP statusTitle
access_change_forbidden403This credential can't make the site public
access_mode_invalid400Access must be public or private
access_password_invalid400Password must be 8 to 72 characters
domain_invalid400Not a usable domain name
domain_not_found404Domain not found
domain_taken409This domain is already in use
share_email_invalid400Not a valid email address
share_exists409Already shared with this person
share_limit409Share limit reached
share_member409This person is already on the team
share_not_found404Share not found

Git

Git
CodeHTTP statusTitle
git_branch_invalid400Not a valid branch name
git_build_not_awaiting409This build is not waiting for approval
git_build_not_found404Build not found
git_installation_forbidden403This GitHub installation is not yours
git_installation_not_found404GitHub installation not found
git_repository_not_found404Repository not found
github_not_configured503GitHub is not set up on this Perafly

Built-in agent

Built-in agent
CodeHTTP statusTitle
agent_budget_invalid400Invalid session budget
agent_consent_required409The team has not accepted the agent data notice
agent_credits_exhausted402No agent credits left
agent_not_configured503The built-in agent is not set up
agent_provider_error502The agent service did not respond
agent_session_ended409The session has ended
agent_session_paused409The session budget is used up
agent_session_waiting409The agent is waiting for a tool approval