ClavianAPI errors
All error codes

402 Payment Required

Nothing to fund the session

Code
no_funding
Status
402 Payment Required
Type
https://errors.clavian.io/no-funding

What it means

Nothing can pay for the session: no pass, wallet balance or membership time the player holds is valid on this station, and neither grace time nor postpaid applies.

What to do

Offer what would fund it, such as a pass for this station class, a wallet top-up or a membership, or send the player to staff. Start the session again once one is in place.

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/no-funding",
  "title": "Nothing to fund the session",
  "status": 402,
  "code": "no_funding",
  "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.