Skip to content

Conflict (409) ​

https://rowstile.dev/problems/conflict is the type of the problem body (RFC 9457) the SDKs answer with when the database turns down a change because of where things are now: a move that would put a folder inside one of its own subfolders. The same move may work once the tree is different, so it is a conflict, not a malformed request.

json
{
  "type": "https://rowstile.dev/problems/conflict",
  "title": "Conflict",
  "status": 409,
  "detail": "folder 1 cannot be moved inside itself",
  "code": "AZ713"
}
  • detail: the database's words, which name the object.
  • code: AZ713, moved inside itself.

rowstile.fastapi answers 409 too when an ORM update matched no row though the rules allow it: the row changed since it was read (a version counter, SQLAlchemy's version_id_col). So do the SDKs for ASP.NET Core (EF Core), Rails (lock_version), Spring (JPA) and Phoenix (Ecto). Read it again, then try again. This one has no code, since the database turned nothing down:

json
{
  "type": "https://rowstile.dev/problems/conflict",
  "title": "Conflict",
  "status": 409,
  "detail": "the row changed since it was read, and the rules allow the change: read it again"
}

Where it comes from: every SDK (each one's calls). In Python and TypeScript: rowstile.fastapi (FastAPI), route() and action() in @rowstile/next (Next.js) and problemOf(e) for any other framework (Node).