add generic HttpResponse
This commit is contained in:
		@ -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);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user