ClavianAPI errors
All error codes

403 Forbidden

Phone sign-in is turned off

Code
phone_sign_in_off
Status
403 Forbidden
Type
https://errors.clavian.io/phone-sign-in-off

What it means

Signing in, creating an account or verifying a number with a phone and a one-time code is turned off on the Platform for now. No code was sent and nothing changed.

What to do

Say that phone sign-in is not available right now and offer email, a password or Google instead. Hide the phone options: GET /v1/meta (signIn.phone) says whether they are on, and at a kiosk GET /v1/station/sign-in/options.

Example

The API answers with status 403 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/phone-sign-in-off",
  "title": "Phone sign-in is turned off",
  "status": 403,
  "code": "phone_sign_in_off",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

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