> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Conflict

> Raised when a request conflicts with the current state of a resource (HTTP 409).

This exception occurs when attempting to perform an operation that conflicts
with the current state of a resource. This typically happens when trying to
create resources that already exist, or when concurrent modifications cause
state conflicts.

Common Conflict scenarios:

* Creating resources with duplicate names
* Modifying resources during processing
* Violating business logic constraints
* Concurrent modification conflicts

## Examples

Handling resource conflicts:

```python theme={null}
try:
    project = fdl.Project(name="existing-project").create()
except fdl.Conflict as e:
    print(f"Project already exists: {e.message}")
    # Use the existing project or choose a different name
    project = fdl.Project.from_name(name="existing-project")
```

## Attributes

**code** `int` (default: 409)

HTTP status code; always `409` (`HTTPStatus.CONFLICT`).

**reason** `str` (default: 'Conflict')

Reason string; always `Conflict`.
