Resource already exist

Occurs when attempting to create a resource that already exists.

Cause

You are attempting to create a resource that already exists in the system.

This typically happens when a unique attribute (such as an email address, username, or identifier) is already associated with an existing resource.

Suggested Action

Verify that the resource does not already exist before attempting to create it, or use an update operation if modifying the existing resource is intended.

Common Scenarios

  • Creating a user with an email address that already exists
  • Adding a resource with a unique identifier that is already in use
  • Duplicate resource creation due to retries or client-side caching

Response Example

{
  "type": "https://developers.leadboxer.com/docs/resource-conflict",
  "title": "Resource already exist",
  "status": 409,
  "detail": "User with email [email protected] already exists",
  "instance": "/v1/users"
}

HTTP Status

409 Conflict

Resolution

  1. Check if the resource already exists before creating it
  2. Use a different unique value (e.g., email address or identifier)
  3. Update the existing resource if applicable