diff --git a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/exceptions/PartyAlreadyStartedException.java b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/exceptions/PartyAlreadyStartedException.java index cc987ea..089a428 100644 --- a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/exceptions/PartyAlreadyStartedException.java +++ b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/exceptions/PartyAlreadyStartedException.java @@ -1,2 +1,12 @@ -package fr.iut.sciencequest.sae.exceptions;public class PartyAlreadyStartedException { +package fr.iut.sciencequest.sae.exceptions; + + +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.ResponseStatus; + +@ResponseStatus(HttpStatus.FORBIDDEN) +public class PartyAlreadyStartedException extends RuntimeException { + public PartyAlreadyStartedException() { + super("Party already started"); + } }