---
title: State required
summary: Code: staterequired
section: errors
order: 93
---
# State required

Code: `state_required`

- HTTP status: 400 Bad Request
- OAuth `error`: `invalid_request`
- Shown to the end user: This app sent an incomplete sign-in request, so we stopped it. Go back to the app and try again. If it keeps happening, tell the app's developer.

Request-specific detail for this error is safe to show to the person signing in.

## Cause

The /authorize request has no state parameter.

## Fix

Send an unguessable state value and check it when the user returns. The SDKs do this for you.

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