1
0
forked from PGL/Clyde

add generic HttpResponse

This commit is contained in:
Bartha Maxime 2024-03-06 17:37:38 +01:00
parent 5acca4d10d
commit 37d24c59e7

View File

@ -0,0 +1,12 @@
package ovh.herisson.Clyde.Responses;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
public class UnauthorizedResponse extends ResponseEntity<String> {
public UnauthorizedResponse(String message) {
super(message,HttpStatus.UNAUTHORIZED);
}
}