mirror of
https://github.com/PaulReichmuth/timekeep-backend.git
synced 2025-12-22 14:41:57 +00:00
remove response status annotation, as now correctly handled in the ResponseEntity inside the respective controller
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user