PREGEN.ORG

Refusal codes

Version 5: the core and likeness/1 · earlier interface: 38 codes, 17 core and 21 of PRAMPTA's own · policy version 2026-11-07.1

Version 5

A “no” is a signed answer with a reason, not an HTTP error. The core defines two reasons, the profile likeness/1 the rest, and a registry may add its own. A reason you do not know is still a no.

Core, for every registry and profile:

  • PG_UNKNOWN_SUBJECT — the registry holds no such subject, so it has no decision to give. Not a prohibition, and not a permission.
  • PG_OTHER_REGISTRY — the code's prefix belongs to another registry.

Protections of likeness/1, checked before any licence; no licence, extension or registry policy overrides them:

  • PG_SUBJECT_OPTED_OUT — an opt-out in effect.
  • PG_SUBJECT_UNAVAILABLE — the subject is paused or withdrawn, or awaits the registry's own review.
  • PG_PROHIBITED_USE — a fixed protection forbids the use: a minor's likeness in a sexualised or otherwise prohibited category.
  • PG_IMMUTABLE_DENIAL — an immutable denial.
  • PG_PERSONAL_SIGNATURE_REQUIRED — an intimate category (sexual, adult) without the person's own signature.

Other reasons of likeness/1:

  • PG_SUBJECT_PENDING — with status not_blocked: a ToG code not yet verified. It permits nothing and forbids nothing, and is not a refusal of the person.
  • PG_NO_LICENSE — no grant covers this licensee and use.
  • PG_USAGE_LIMIT — the grant's uses are spent.
  • PG_SUBJECT_DISPUTED — a complaint about this code is being examined. Refused at this registry only: it is not a refusal of the person in other registries.
  • PG_SCOPE_VIOLATION — outside the grant's scope.
  • PG_REVIEW_REQUIRED — held for a human; comes with status review.
  • PG_NOT_CONNECTED — this use needs a connected end user; show it as “connect your account”, not as a refusal.

Extensions:

  • PG_PROVIDER_NOT_ACCEPTED — the registry has not vetted this provider, known only by its domain, and answers it only about published subjects (their refusals included) and its own connected licensees (provider-identity). A refusal; it hides whether a private code exists, and a private subject's own refusals.
  • PG_NOT_BOUND — HTTP 403: the licensee has not connected their licences to this app; show it as “connect your licence” (bind).
  • PG_TERMS_NOT_ACCEPTED — the request names terms that are not the subject's current version, or another subject's, or terms where the subject has none. It binds no ask (terms).
  • PG_TERMS_EXCLUDED — the use is outside the subject's terms (terms).

PG_IDENTITY_UNCONFIRMED is an outcome of the client's own check of a public person (identity), not a registry answer.

Errors about the request itself are HTTP errors with {"error", "error_description"}: PG_MALFORMED (422, the request does not follow the core), PG_NOT_AUTHENTICATED (401, credential, signature or provider_id not accepted), PG_PROFILE_UNSUPPORTED (422, the registry does not answer under this profile).

Errors of the extensions: PG_JOB_CONFLICT (409, another job_hash for the same provider and job), PG_ASK_CONFLICT (409, a different request for the same provider, job and subject) and PG_ASK_CLOSED (409, with the stored acknowledgement: that subject of the job was already reported generated) (jobs); PG_REPORT_CONFLICT (409, a different report for an answer already reported) (reports); PG_UNKNOWN_TERMS (404, no terms with this id were ever published here) (terms); PG_BIND_CODE (400, the code is unknown, used or expired, or not for this client, redirect URI or verifier) (bind).

Earlier interface (/v1)

Core codes are used by every registry with this meaning (spec §3). The rest are PRAMPTA’s own, defined before v5 without a prefix and kept for compatibility; new codes of every registry, PRAMPTA included, carry its issuer prefix, PG_<ISSUER>_….

Every decision from POST /v1/verify/ carries a reason. A hard code means no retry, reshaped request or new licence changes the answer. A soft code means a different request, a valid licence or a different provider might succeed. An unknown code must be treated as hard.

Two codes are not refusals: PG_STD_TRACKING_ONLY comes with not_blocked (personal use, nothing granted) and PG_ORG_INTERNAL_USE with allow.

CodeCoreCategoryTypeSinceMeaning
PG_MISSING_PROMPT_HASHcorerequestsoft2025-01-01The request did not include a prompt_hash to bind the decision to.
PG_ENTITLEMENT_INACTIVEidentityhard2025-06-01The purchase (entitlement) backing this request is no longer active — reversed or expired.
PG_IDENTITY_MISMATCHidentitysoft2026-07-26The licence belongs to a different end user than the one the caller is acting for — cross-user reuse. Also raised when a request supplies both a link id and a provider user id that describe different people.
PG_IDENTITY_REQUIREDidentitysoft2026-07-26The licence is bound to a specific end user, and REQUIRE_PROVIDER_USER_BINDING is on, so the caller must say which user it is acting for. Supply provider_user_id or provider_identity_link_id.
PG_IDENTITY_REVOKEDidentityhard2025-06-01The provider disowned this end user's identity link (Identity v2 §7).
PG_IDENTITY_UNKNOWNidentitysoft2026-07-26The caller asserted an end-user identity that does not resolve to any live identity link for this provider — the user has not completed the PRAMPTA connect flow, or the link was deleted.
PG_NO_PAIRcoreidentitysoft2025-01-01No live provider↔licensee pair authorizes this caller.
PG_PROVIDER_NOT_ALLOWEDidentitysoft2025-06-01This license's allow/block list excludes the calling provider.
PG_INSUFFICIENT_AUTHORITYsubject trustsoft2025-10-01The subject's authority/verification tier does not meet the bar this request needs.
PG_NO_SUBJECTcoresubject trustsoft2025-01-01No registered subject matches subject_id. Not a prohibition: this registry knows nothing about the subject, so the provider decides under its own policy and must not present the output as licensed (spec P-5).
PG_OWNER_NOT_VERIFIEDsubject trustsoft2026-08-19Commercial use also requires the subject's owning account itself to be verified (identity-verified user, or domain/kyc-tier organization) — the subject alone reaching commercial_enabled is not sufficient.
PG_PROHIBITED_USEcoresubject trusthard2026-06-01A permanently-denied use for a high-risk subject (16.9) — e.g. a sexualized category for a minor.
PG_PROVIDER_VETOEDsubject trusthard2025-07-01The rights holder blocked this specific provider — no license changes that.
PG_REFERENCE_ONLYsubject trusthard2025-01-01The subject is registered as reference-only and never licenses.
PG_SANDBOX_SUBJECT_ONLYsubject trusthard2025-08-01A sandbox (Tier 1) provider credential may only verify against synthetic test subjects.
PG_SUBJECT_DISPUTEDcoresubject trusthard2025-09-01A dispute is open on this subject (A5, §9) — licensing is frozen pending outcome.
PG_SUBJECT_NOT_LICENSABLEsubject trusthard2025-10-01The subject's trust-lifecycle state (suspended/disputed/revoked/archived) permits no licensing at all.
PG_SUBJECT_OPTED_OUTcoresubject trusthard2025-01-01The subject's rules_text refuses this request's category outright.
PG_SUBJECT_PAUSEDcoresubject trustsoft2025-01-01The subject's owner temporarily paused licensing.
PG_SUBJECT_PENDINGcoresubject trustsoft2025-01-01The subject is awaiting operator review before it may license at all (reserved/high-profile name).
PG_SUBJECT_WITHDRAWNcoresubject trusthard2025-01-01The subject was withdrawn by its owner or on moderation takedown.
PG_CONCURRENCY_LIMITlicensesoft2025-05-01The license's concurrent in-flight generation cap is reached.
PG_EXTENSION_REFUSEDlicensesoft2025-05-01A license extension (e.g. a region rider) evaluated and refused this request.
PG_IMMUTABLE_DENIALcorelicensehard2025-01-01The request's declared category matches one of the license's immutable (never-grantable) denials.
PG_INVALID_SIGNATUREcorelicensehard2025-01-01A license was found but its signature does not verify.
PG_LICENSE_REVOKEDcorelicensehard2025-09-15A live revocation (full or partial — this provider/modality/channel/region) withdraws this license (A7).
PG_MISSING_CONTEXTlicensesoft2025-04-01The license restricts a dimension (modality/channel/territory/use case) and the request omitted it — fail-closed rather than let an omission bypass a restriction.
PG_NO_LICENSEcorelicensesoft2025-01-01No valid, live license authorizes this licensee for this subject.
PG_PRODUCT_MISMATCHlicensesoft2025-04-01The license is bound to a specific product and this request names a different one.
PG_PROJECT_MISMATCHlicensesoft2025-04-01The license is bound to a specific project and this request names a different one.
PG_REGION_BLOCKEDlicensesoft2025-06-01The request's territory falls outside the license's allowed regions (Identity v2 scope).
PG_RIGHTS_NOT_GRANTEDlicensesoft2026-06-01The request exercises a rights dimension (16.8 — e.g. model_training) the license never granted.
PG_SCOPE_VIOLATIONcorelicensesoft2025-01-01The request's modality, channel, or territory falls outside what the license scopes.
PG_TIER_VIOLATIONlicensesoft2025-05-01The declared use case ranks above what this license's tier authorizes.
PG_USAGE_LIMITcorelicensesoft2025-05-01The license's purchased quantity (max_uses) is exhausted.
PG_ORG_INTERNAL_USEgrantsoft2026-09-25ALLOWED without a licence: the connected user is an owner, admin or creator of the organization that itself holds this character, brand or work (never a person's likeness or voice). Ends when they leave the organization or lose the role. core/authz.py::org_internal_user.
PG_HELD_FOR_REVIEWcorereviewsoft2026-07-24A commercial generation of a high-risk subject that would otherwise be ALLOWED is held for a human (opt-in, REVIEW_HIGH_RISK_COMMERCIAL).
PG_STD_TRACKING_ONLYcoretrackingsoft2026-09-21Personal use with no licence: the fixed floor (opt-out, status, minors, scope, deny) passed, so PRAMPTA does not block it — but grants nothing. disposition=not_blocked.

A correct client stops on hard codes and reacts to soft ones: offer a licence request, show “buy more”, back off on concurrency. Retrying a withdrawn subject forever is the canonical wrong behaviour.