This commit is contained in:
indx0
2025-11-21 21:39:00 +03:00
parent a612c92833
commit 02a8c05142
11 changed files with 92 additions and 28 deletions

View File

@@ -10,6 +10,6 @@ import org.springframework.web.bind.annotation.ExceptionHandler;
public class GlobalExceptionHandler {
@ExceptionHandler(CodeNotFoundException.class)
public ResponseEntity<Void> handleCodeNotFoundException(CodeNotFoundException e) {
return new ResponseEntity<Void>(HttpStatus.UNAUTHORIZED);
return new ResponseEntity<>(HttpStatus.UNAUTHORIZED);
}
}