Skip to content

A code could not be created

What the device_code_unavailable error from the Perafly API means and what to do about it.

On this page
Code
device_code_unavailable
HTTP status
503

What it means

A step of the device sign-in (the code perafly login shows) or of a handoff link didn't complete.

What to do

Follow the step the error names. If the code or link expired, start the sign-in again with perafly login.

Read more: CLI

Example response

This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.

{
  "type": "https://perafly.com/docs/errors/device_code_unavailable",
  "title": "A code could not be created",
  "status": 503,
  "code": "device_code_unavailable",
  "instance": "/v1/…",
  "requestId": "req_…"
}

All error codes