Skip to main content
Version: 4.x

Conflict

Type URIhttps://doc.expresso-ts.com/docs/errors/conflict
HTTP status409

The request cannot be carried out because of the current state of a resource, for example creating something that already exists.

When it is sent​

A handler throws AppError.conflict(message, details?).

{
"type": "https://doc.expresso-ts.com/docs/errors/conflict",
"title": "Conflict",
"status": 409,
"detail": "A user with this email already exists",
"instance": "/api/users",
"details": { "email": "[email protected]" }
}

What to do​

Read detail and details: they say which state the request ran into. Sending the same request again gives the same answer until that state changes.

See Error responses for the shape of the document and how to turn it on.