AbsaOSS / AbsaOSS/enceladus

Use 409 (Conflict) response for entity clashes

Đang mở
#738 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature Menas priority: medium
Ngôn ngữ chính
Scala
Star
33
Fork
16
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.