From 703115ac6a1da44bc0759d21c3210f265675caa3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 4 Jan 2023 18:08:40 +0300 Subject: Respond with HTTP 202 to stop sending unknown note updates --- src/main/java/com/juick/www/api/activity/Profile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick/www/api/activity') diff --git a/src/main/java/com/juick/www/api/activity/Profile.java b/src/main/java/com/juick/www/api/activity/Profile.java index d2468d70..43a797fb 100644 --- a/src/main/java/com/juick/www/api/activity/Profile.java +++ b/src/main/java/com/juick/www/api/activity/Profile.java @@ -399,7 +399,7 @@ public class Profile { return new ResponseEntity<>(HttpStatus.SERVICE_UNAVAILABLE); } else { logger.warn("Update not found: {}", note.getId()); - return new ResponseEntity<>(HttpStatus.NOT_FOUND); + return new ResponseEntity<>(HttpStatus.ACCEPTED); } } else { logger.warn("Invalid Update: {}", jsonMapper.writeValueAsString(activity)); -- cgit v1.2.3