ClavianAPI errors
All error codes

403 Forbidden

Second factor required

Code
second_factor_required
Status
403 Forbidden
Type
https://errors.clavian.io/second-factor-required

What it means

The caller’s role needs a second factor, and this session was signed in without one.

What to do

Ask for the second factor, or for enrolling one if the person has none yet, then repeat the request from the session that has it.

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/second-factor-required",
  "title": "Second factor required",
  "status": 403,
  "code": "second_factor_required",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

74 endpoints in the OpenAPI document name it among their answers.

All 74 endpoints