Conflict
The request clashes with the current state of what it changes.
- Status
- 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_existsorjob_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_existsortask_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 withforce=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_mismatchorupload_finished, start a new upload. - For
conflict, read the resource again to see its current state before you retry.
Codes
| Code | Retryable | When |
|---|---|---|
conflict | No | The request clashes with the current state |
already_exists | No | Something with that identity already exists |
job_name_taken | No | Scheduler: another job in the project has that name, ignoring case |
run_in_progress | No | Scheduler: the job already has a run that has not finished |
bucket_name_taken | No | Storage: another bucket in the project has that name |
bucket_not_empty | No | Storage: the bucket still holds files |
folder_not_empty | No | Storage: the folder still holds files |
upload_incomplete | No | Storage: the file has not arrived at its upload link yet |
upload_size_mismatch | No | Storage: the file is larger than declared, or its digest does not match |
upload_finished | No | Storage: the upload expired, was cancelled or refused, or its file was since replaced |
hooks_name_taken | No | Webhooks: another source or destination in the project has that name |
delivery_not_waiting | No | Webhooks: the delivery is being sent or has finished, so it cannot be cancelled |
prompt_exists | No | AI: the project already has a prompt with that name |
prompt_in_use | No | AI: a task uses the prompt, so it can’t be deleted |
task_exists | No | AI: the project already has a task with that name |
Last updated