ClavianAPI errors
All error codes

409 Conflict

Station not available

Code
station_unavailable
Status
409 Conflict
Type
https://errors.clavian.io/station-unavailable

What it means

The station cannot start a session now: it is not locked and waiting for a player, it is disabled, or it is in maintenance.

What to do

Offer another station, or send the player to staff. A console shows the station’s current mode.

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/station-unavailable",
  "title": "Station not available",
  "status": 409,
  "code": "station_unavailable",
  "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.