текстовые ответы в .body

This commit is contained in:
lynxwq2 committed 2025-11-28 19:33:01 +03:00
1 parent 06e3294364
commit a13f3ebf33
1 file changed
+3 -3
@@ -35,15 +35,15 @@ public class EmployeeController {
if (employeeService.isCodeValid(code)) {
return ResponseEntity
.status(HttpStatus.OK)
.body("<html><i> данный код существует - можно пользоваться приложением</b></html>");
.body("данный код существует - можно пользоваться приложением");
} else if (code == null) {
return ResponseEntity
.status(HttpStatus.BAD_REQUEST)
.body("<html><b> что-то пошло не так</b></html>");
.body("что-то пошло не так");
} else {
return ResponseEntity
.status(HttpStatus.UNAUTHORIZED)
.body("<html>кода не существует</html>");
.body("кода не существует");
}
}