Under different circumstances, both creating and updating a group has failed for me with HTTP status 400.
It took me a little while to figure out that in both cases, the underlying issue was that the group's intended new name was already in use by another group.
In such situations, wouldn't it make more sense to respond with HTTP status 409 Conflict instead of the very generic 400 Bad Request? 400 Bad Request could mean anything, even that your request can't be parsed. 409 Conflict is much more specific and helpful, in my opinion.
Under different circumstances, both creating and updating a group has failed for me with HTTP status 400.
It took me a little while to figure out that in both cases, the underlying issue was that the group's intended new name was already in use by another group.
In such situations, wouldn't it make more sense to respond with HTTP status 409 Conflict instead of the very generic 400 Bad Request? 400 Bad Request could mean anything, even that your request can't be parsed. 409 Conflict is much more specific and helpful, in my opinion.