Skip to content
Snippets Groups Projects

Changed status code on choosing the same name as other profile. Renamed class name

Closed Katarzyna Szlejter requested to merge change-statuscode into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -98,7 +98,7 @@ public class ProfileController {
if (!listOfProfiles.isEmpty()) {
logger.warn("Another profile on the current account with the same name exists.");
throw new ResponseStatusException(HttpStatus.BAD_REQUEST);
throw new ResponseStatusException(HttpStatus.CONFLICT);
} else {
profile.setName(request.name());
}
Loading