Added latest changes
This commit is contained in:
parent
6a8ce60434
commit
89a49ba786
|
@ -32,6 +32,7 @@ public class DeleteTaskWebController {
|
|||
|
||||
// Check if the task with the given identifier exists
|
||||
if (deleteATask.isEmpty()) {
|
||||
|
||||
// If not, through a 404 Not Found status code
|
||||
throw new ResponseStatusException(HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user