remove response status annotation, as now correctly handled in the ResponseEntity inside the respective controller

This commit is contained in:
2025-10-29 12:49:18 +01:00
parent 633ed64b62
commit 165c9bba28
3 changed files with 0 additions and 3 deletions

View File

@@ -5,7 +5,6 @@ import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@Slf4j
@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "RACER_NOT_FOUND")
public class RacerNotFoundException extends RuntimeException {
public RacerNotFoundException(String message) {
super(message);

View File

@@ -5,7 +5,6 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.CONFLICT, reason = "TEAM_EXISTS")
@Slf4j
public class TeamExistsException extends RuntimeException {
public TeamExistsException(String message, Team team) {

View File

@@ -5,7 +5,6 @@ import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@Slf4j
@ResponseStatus(HttpStatus.NOT_FOUND)
public class TeamNotFoundException extends RuntimeException {
public TeamNotFoundException(String message) {
super(message);