diff --git a/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/AuthController.java b/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/AuthController.java index a5163bef..b0b29a87 100644 --- a/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/AuthController.java +++ b/backend/sportsmatch/src/main/java/com/sportsmatch/controllers/AuthController.java @@ -58,7 +58,7 @@ public ResponseEntity getUserMainPage() { try { return ResponseEntity.ok().body(userService.getMyRank()); } catch (ResponseStatusException e) { - return ResponseEntity.badRequest().body(e.getStatusCode()); + return new ResponseEntity<>(e.getMessage(), e.getStatusCode()); } } }