From 89a49ba786fb42ac8911936f81982febd24848d2 Mon Sep 17 00:00:00 2001 From: jj187 Date: Sat, 16 Oct 2021 20:54:54 +0200 Subject: [PATCH] Added latest changes --- .../tapastasks/tasks/adapter/in/web/DeleteTaskWebController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tapas-tasks/src/main/java/ch/unisg/tapastasks/tasks/adapter/in/web/DeleteTaskWebController.java b/tapas-tasks/src/main/java/ch/unisg/tapastasks/tasks/adapter/in/web/DeleteTaskWebController.java index 6758337..af721d1 100644 --- a/tapas-tasks/src/main/java/ch/unisg/tapastasks/tasks/adapter/in/web/DeleteTaskWebController.java +++ b/tapas-tasks/src/main/java/ch/unisg/tapastasks/tasks/adapter/in/web/DeleteTaskWebController.java @@ -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); }