4xx Client Error
There's a conflict - what you're trying to do clashes with something that already exists or the current state.
Use 409 when the request is valid but conflicts with the current resource or system state.
POST https://api.example.test/api/users
# Body
{
"username": "john_doe"
}409 Conflict
# Headers
Content-Type: application/json
# Body
{
"error": "conflict"
}Username "john_doe" is already taken by another user