ClavianAPI errors
All error codes

400 Bad Request

Incorrect PIN

Code
session_pin_incorrect
Status
400 Bad Request
Type
https://errors.clavian.io/session-pin-incorrect

What it means

The PIN entered to unlock this session is not right. detail says how many tries remain before unlocking is locked.

What to do

Let the player try again. After the fifth wrong try unlocking locks, and the answer becomes session_unlock_locked.

Example

The API answers with status 400 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-pin-incorrect",
  "title": "Incorrect PIN",
  "status": 400,
  "code": "session_pin_incorrect",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

From the OpenAPI document, every endpoint that names it among its answers: