From 37d24c59e79675c45000100a6e6f294ad5f587b0 Mon Sep 17 00:00:00 2001 From: Bartha Maxime <231026@umons.ac.be> Date: Wed, 6 Mar 2024 17:37:38 +0100 Subject: [PATCH] add generic HttpResponse --- .../Clyde/Responses/UnauthorizedResponse.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 backend/src/main/java/ovh/herisson/Clyde/Responses/UnauthorizedResponse.java diff --git a/backend/src/main/java/ovh/herisson/Clyde/Responses/UnauthorizedResponse.java b/backend/src/main/java/ovh/herisson/Clyde/Responses/UnauthorizedResponse.java new file mode 100644 index 0000000..154ecd8 --- /dev/null +++ b/backend/src/main/java/ovh/herisson/Clyde/Responses/UnauthorizedResponse.java @@ -0,0 +1,12 @@ +package ovh.herisson.Clyde.Responses; + + +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; + + +public class UnauthorizedResponse extends ResponseEntity { + public UnauthorizedResponse(String message) { + super(message,HttpStatus.UNAUTHORIZED); + } +}