Skip to main content

Policy version conflict

typehttps://docs.frem.sh/reference/api/errors/policy-version-conflict
HTTP status409 Conflict

What it means

The package policy changed since you read it. Every write carries the version you read; a write against an older version is refused so two editors cannot silently overwrite each other.

Example detail messages returned with this error:

  • The package policy is at version 4; you sent version 3.

What to do

Read the policy again with GET /orgs/{org}/package-policy, re-apply your change to what it returns, and send the new version.

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/policy-version-conflict",
  "title": "Conflict",
  "status": 409,
  "detail": "..."
}

Branch on type, not on title or detail - those are human-readable and may be reworded.