ClavianAPI errors
All error codes

400 Bad Request

Code expired; ask for a new one

Code
otp_expired
Status
400 Bad Request
Type
https://errors.clavian.io/otp-expired

What it means

The one-time code can no longer be used: it expired, five wrong attempts used it up, or none was asked for.

What to do

Ask for a new code and use that one. Trying this code again fails the same way.

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/otp-expired",
  "title": "Code expired; ask for a new one",
  "status": 400,
  "code": "otp_expired",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

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