Playout Authorization Errors
The playout endpoint (/q/{objectId}/rep/playout/{offering}/options.json) returns HTTP 403 for all
authorization failures. There are two variations to disambiguate: geographic restrictions and missing
entitlements (no access pass). The error responses share the same outer structure and are distinguished by function
names embedded in the trace field inside the Policy.Enforce cause.
This document shares these details, and matching JavaScript code to detect them.
No Entitlement -- Missing Access Pass
The user does not own a qualifying NFT. Produced by, for example, nft_owner_or_admin.yaml.
The trace shows isOwnerOfLinkedNft failing.
{
"errors": [
{
"op": "Q.callJPC",
"kind": "permission denied",
"cause": {
"op": "Allow",
"kind": "permission denied",
"permissions_error": {
"op": "Allow",
"kind": "permission denied",
"cause": {
"op": "isAllowed",
"kind": "permission denied",
"cause": {
"errors": [
{
"op": "enforcePolicy",
"kind": "permission denied",
"cause": {
"op": "Policy.Enforce",
"kind": "permission denied",
"trace": "fail - policy: ... isOwnerOfLinkedNft - 1.8ms\n"
}
}
]
}
}
}
}
}
]
}
Suggested user message: "A subscription, purchase, or rental is required to watch this title."
To determine which pass to offer, see Discovering What to Purchase.
Geo-Restriction
The request originated from a restricted region. Produced by, for example, a geo policy (e.g. policy-ip-geo.yaml)
applied to the content or its associated pass. The trace shows ipGeoLocationProps returning
the user's country code, checked against the geo restriction list.
{
"errors": [
{
"op": "Q.callJPC",
"kind": "permission denied",
"cause": {
"op": "Allow",
"kind": "permission denied",
"permissions_error": {
"op": "Allow",
"kind": "permission denied",
"cause": {
"op": "isAllowed",
"kind": "permission denied",
"cause": {
"errors": [
{
"op": "enforcePolicy",
"kind": "permission denied",
"cause": {
"op": "Policy.Enforce",
"kind": "permission denied",
"trace": "fail - policy: ... ipGeoLocationProps - 13.5µs - US\n"
}
}
]
}
}
}
}
}
]
}
Suggested user message: "This content is not available in your region."
Distinguishing the Two
Both errors are HTTP 403. The classification uses the presence or absence of two function names
anywhere in the stringified response, exploiting and short-circuit evaluation in the policy engine:
ipGeoLocationProps | isOwnerOfLinkedNft | Meaning |
|---|---|---|
| present | absent | Geo-blocked -- NFT check was short-circuited |
| present | present | No entitlement -- geo passed, NFT check ran + failed |
| absent | present | No entitlement -- no geo policy on this object |
When geo and NFT checks are combined in a single policy with and, the policy engine short-circuits
at the geo check if it fails, leaving isOwnerOfLinkedNft absent from the trace. If geo passes,
both functions appear. This makes the absence of isOwnerOfLinkedNft the reliable geo-block signal,
not the presence of ipGeoLocationProps alone.
function classifyPlayoutError(response) {
const s = JSON.stringify(response);
const hasGeo = s.includes("ipGeoLocationProps");
const hasNft = s.includes("isOwnerOfLinkedNft");
if (hasGeo && !hasNft) return "geo-blocked";
if (hasNft) return "no-entitlement";
return "unknown";
}