AbsaOSS / AbsaOSS/enceladus

Use 409 (Conflict) response for entity clashes

Offen
#738 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
feature Menas priority: medium
Vorherrschende Sprache
Scala
Sterne
33
Forks
16
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.