402 Payment Required
A pass is needed to play here
- Code
pass_required- Status
402Payment Required- Type
https://errors.clavian.io/pass-required
What it means
This venue has turned pay as you go off (sessions.payAsYouGoEnabled), so play time comes only from passes and time staff add. The player holds no pass that is valid on this station now.
What to do
Offer a pass for this station class — at the kiosk or the desk — or ask staff to add time. Start the session again once the player holds one.
Example
The API answers with status 402 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.
{
"type": "https://errors.clavian.io/pass-required",
"title": "A pass is needed to play here",
"status": 402,
"code": "pass_required",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
No endpoint in the OpenAPI document names it yet. It is part of the contract already, so a client can handle it before an endpoint sends it.