conflict

HTTP 409 — The request conflicts with the current state of the resource.

Returned as application/problem+json with code conflict and HTTP status 409.

The request cannot be applied because it conflicts with the resource’s current state.

Common causes

  • Creating a duplicate resource.
  • A state transition that is not valid from the current state (e.g. archiving mail that is already archived).
  • A concurrent modification.

How to resolve

  • Re-fetch the resource to see its current state, then retry the appropriate action.

Example

1{
2 "type": "https://docs.usglobalmail.com/api/problems/conflict",
3 "title": "The request conflicts with the current state of the resource.",
4 "status": 409,
5 "code": "conflict",
6 "request_id": "req_8f3c2a1b9d",
7 "instance": "/v1/mails"
8}
Retrying without changing the request will not help — fix the request first.