I have a resource I want to insert via POST; say a reservation. In some cases, the server can't insert the given object, but needs to give feedback to the user, what needs to change in order to be able to insert it. For example if you send a reservation with the following content:
{
"start": "2020-09-14T15:00:00Z",
"end": "2020-09-14T15:00:00Z",
"memberId": 5,
"seat": "A5",
}
If the server sees that seat A5 is already occupied, but wants to return a list of seats that would be free for that time range, what would I use?
409 Conflict seems to be somewhat like what I want, because in its specification you can tell the user what's wrong. But I'm not sure if this would count as a conflict.