We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 264275f commit 37cb998Copy full SHA for 37cb998
1 file changed
server/matching/src/main/java/meet_at_mensa/matching/controller/MatchingController.java
@@ -223,6 +223,12 @@ public ResponseEntity<Group> postApiV2MatchingDemo(MatchRequestNew matchRequestN
223
// return 200 with MatchRequestCollection if found
224
return ResponseEntity.ok(demoGroup);
225
226
+ // 409
227
+ } catch (RequestOverlapException e) {
228
+
229
+ // return 409 if user already has a request on that day
230
+ return ResponseEntity.status(HttpStatus.CONFLICT).build();
231
232
// 500
233
} catch (Exception e) {
234
0 commit comments