# 409 Conflict: 409 Conflict

> The platform request conflicts with existing state, most often creating a database or token whose name already exists.

Source: https://sqlly.app/errors/libsql/conflict-409
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).
Note: Quoted error message text belongs to its database vendor.

- Error: `409 Conflict`
- Category: Remote server and Hrana errors

Error message:

```text
Server returned HTTP status 409 Conflict
```

## What it means

Turso's response-code reference lists 409 as `Resource already exists`. On the platform API that is nearly always a create whose name is taken; anything beyond that is speculative. It is a platform API response, not something a SQL pipeline produces.

## Common causes

- Creating a database, token, or group with a name that already exists.
- A concurrent change to the same resource won the race.

## How to fix it

1. List existing resources and pick a new name or reuse the existing one:

   ```sql
   turso db list
   ```

## Reproduce it safely

```sql
Local and honest against the platform: `turso db create name-demo` twice; the second create collides with the first and the API answers 409 (the CLI prints its own wording). Needs a real account; nothing to reproduce offline.
```

## How SQLly helps

SQLly never creates databases, so a 409 during provisioning will not appear in the client, but connecting to the already-existing database by name confirms the resource your script collided with is the one you meant.

## Questions

### Why do I get 409 when creating a Turso database with a name I just deleted?

Check `turso db list` in the active organization first: the delete may have targeted another org, or another resource (a group, a token name) owns the name. The API answers 409 only when something with that name still exists.

### Does 409 come from SQL statements?

No. It is a platform API status for create collisions. A duplicate unique key inside a table is a SQLite constraint error, not HTTP 409.

## Related errors

- [`404 Not Found`](https://sqlly.app/errors/libsql/database-not-found-404): 404 Not Found: unknown database or endpoint
- [`402 Payment Required`](https://sqlly.app/errors/libsql/payment-required-402): 402 Payment Required
- [`500 Internal Server Error`](https://sqlly.app/errors/libsql/internal-server-error-500): server failed on a valid request

The code and message text are from the [libSQL / Turso documentation](https://docs.turso.tech/).
