AbsaOSS / AbsaOSS/enceladus

Use 409 (Conflict) response for entity clashes

Open
#738 0 comments 0 reactions 0 assignees View on GitHub
feature Menas priority: medium
Dominant language
Scala
Stars
33
Forks
16
PR merge metrics
No merged PRs in 30d

Description

## Background
Currently when an entity with a specific name already exists, if you try to create a new one with the same name you get a `400 (Bad Request)` response and a validation entity explaining the clash in the response body.

## Feature
We can be more specific in our response codes if we use `409 (Conflict)`.

## Proposed Solution
1. Change the response code to `409`
1. Keep the response body unchanged

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.