409 Conflict
Session already ended
- Code
session_already_ended- Status
409Conflict- Type
https://errors.clavian.io/session-already-ended
What it means
The session ended before this request reached it, so it cannot be ended, changed or extended again. Nothing was charged twice.
What to do
Read the session again and show how it ended, without retrying. To keep playing, the player starts a new session.
Example
The API answers with status 409 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/session-already-ended",
"title": "Session already ended",
"status": 409,
"code": "session_already_ended",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
20 endpoints in the OpenAPI document name it among their answers.
All 20 endpoints
POST /v1/me/play-sessions/current/endEnd your sessionPOST /v1/me/play-sessions/current/lockLock your PCPOST /v1/me/play-sessions/current/passes/{holdingId}/pinUse a queued pass nextPOST /v1/me/play-sessions/current/unlockUnlock your PCPOST /v1/organizations/{organizationId}/sessions/{sessionId}/add-timeAdd a block to a staff-run sessionPOST /v1/organizations/{organizationId}/sessions/{sessionId}/compGrant comp time to a running sessionPOST /v1/organizations/{organizationId}/sessions/{sessionId}/controllersChange the controllers on a staff-run sessionPOST /v1/organizations/{organizationId}/sessions/{sessionId}/endEnd a sessionPOST /v1/organizations/{organizationId}/sessions/{sessionId}/lockLock or unlock a staff-run sessionPOST /v1/organizations/{organizationId}/sessions/{sessionId}/messageMessage the player at their stationPOST /v1/organizations/{organizationId}/sessions/{sessionId}/moveMove a running session to another stationPOST /v1/organizations/{organizationId}/sessions/{sessionId}/quotePreview adding time or changing controllers on a staff-run sessionPOST /v1/organizations/{organizationId}/sessions/{sessionId}/sell-timeSell more time to a running sessionPOST /v1/station/passes/{productId}/purchaseBuy a pass from the kioskPOST /v1/station/sessions/current/add-timeThe player buys more time at the PCPOST /v1/station/sessions/current/lockThe station reports its session lockedPOST /v1/station/sessions/current/passes/{holdingId}/pinUse a queued pass next on the station’s sessionPOST /v1/station/sessions/current/unlockThe station reports its session unlockedPOST /v1/station/sessions/current/use-walletKeep playing with the walletPUT /v1/station/sessions/current/wallet-useThe player turns their wallet on or off for play time