We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae71741 commit ebf9756Copy full SHA for ebf9756
src/main/java/com/example/articlemanager/usecase/ArticleUsecase.java
@@ -29,7 +29,7 @@ public GenericResponse addArticles(ArticleRequest articleRq) {
29
for (Article article : articles) {
30
if (article.getTitle().equals(articleRq.getTitle())) {
31
32
- genericResponse.setFailed(HttpStatus.BAD_REQUEST, "Title already exist");
+ genericResponse.setFailed(HttpStatus.CONFLICT, "Title already exist");
33
return genericResponse;
34
}
35
0 commit comments