Skip to content

Should respond with HTTP status 409 Conflict when request fails because it violates uniqueness constraints #217

Description

@andersthorbeck

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions