Conflict

The request clashes with the current state of what it changes.

Status
409
Type
https://docs.digitospace.com/problems/conflict

What it means

The request is well formed and allowed, but it cannot happen now, because of how things stand. code says exactly what it clashes with.

How to fix it

Branch on code:

  • For already_exists or job_name_taken, choose another name, or change the one that exists.
  • For run_in_progress, wait for the run to finish, then send the request again.
  • For bucket_name_taken, choose another bucket name.
  • For prompt_exists or task_exists, choose another name, or save the one that exists.
  • For prompt_in_use, change the tasks that use the prompt, or delete them first.
  • For bucket_not_empty, delete the bucket’s files first, or delete it with force=true.
  • For folder_not_empty, delete the folder’s files first.
  • For upload_incomplete, send the file with its upload link, then finish the upload again.
  • For upload_size_mismatch or upload_finished, start a new upload.
  • For conflict, read the resource again to see its current state before you retry.

Codes

CodeRetryableWhen
conflictNoThe request clashes with the current state
already_existsNoSomething with that identity already exists
job_name_takenNoScheduler: another job in the project has that name, ignoring case
run_in_progressNoScheduler: the job already has a run that has not finished
bucket_name_takenNoStorage: another bucket in the project has that name
bucket_not_emptyNoStorage: the bucket still holds files
folder_not_emptyNoStorage: the folder still holds files
upload_incompleteNoStorage: the file has not arrived at its upload link yet
upload_size_mismatchNoStorage: the file is larger than declared, or its digest does not match
upload_finishedNoStorage: the upload expired, was cancelled or refused, or its file was since replaced
hooks_name_takenNoWebhooks: another source or destination in the project has that name
delivery_not_waitingNoWebhooks: the delivery is being sent or has finished, so it cannot be cancelled
prompt_existsNoAI: the project already has a prompt with that name
prompt_in_useNoAI: a task uses the prompt, so it can’t be deleted
task_existsNoAI: the project already has a task with that name

Last updated