---
title: Device code invalid
summary: Code: devicecodeinvalid
section: errors
order: 31
---
# Device code invalid

Code: `device_code_invalid`

- HTTP status: 400 Bad Request
- OAuth `error`: `invalid_grant`
- Shown to the end user: Device code invalid

Request-specific detail for this error goes to the app or developer (API response, developer view, logs). The public page shows only the short message and the code.

## Cause

The device code is unknown or was already redeemed.

## Fix

Start a new device authorization and poll with the device_code it returns.

[All error codes](/errors/index.md)
