Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 700d626

Browse files
dev/codeforces/test Написал интеграционные тесты для PlayerControllerIntegration
1 parent 305dfac commit 700d626

File tree

2 files changed

+632
-2
lines changed

2 files changed

+632
-2
lines changed

src/main/java/com/cf/cfteam/advicers/codeforces/CodeforcesExceptionHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public ResponseEntity<Object> handlePayerNotFoundException(PlayerNotFoundExcepti
3434

3535
@ExceptionHandler(PlayerAlreadyInTeamException.class)
3636
public ResponseEntity<Object> handlePlayerAlreadyInTeamException(PlayerAlreadyInTeamException ex) {
37-
return ErrorResponseBuilder.buildErrorResponse(ex.getMessage(), HttpStatus.NOT_FOUND,
37+
return ErrorResponseBuilder.buildErrorResponse(ex.getMessage(), HttpStatus.CONFLICT,
3838
Map.of(LOGIN, ex.getLogin()));
3939
}
4040

@@ -50,7 +50,7 @@ public ResponseEntity<Object> handlePlayerNotFromTeamException(PlayerNotFromTeam
5050

5151
return ErrorResponseBuilder.buildErrorResponse(
5252
ex.getMessage(),
53-
HttpStatus.NOT_FOUND,
53+
HttpStatus.CONFLICT,
5454
details
5555
);
5656
}

0 commit comments

Comments
 (0)