fix:#44 returned gone for unavailable feeds

This commit is contained in:
Elmar Kresse
2024-07-12 12:27:32 +02:00
parent 40a2192ab9
commit 0addcd72a6

View File

@ -21,7 +21,7 @@ func AddFeedRoutes(app model.AppType) {
if err != nil { if err != nil {
slog.Error("Failed to get feed", "error", err, "token", token) slog.Error("Failed to get feed", "error", err, "token", token)
return c.SendStatus(fiber.StatusBadRequest) return c.SendStatus(fiber.StatusGone)
} }
c.Response().Header.Set("Content-type", "text/calendar") c.Response().Header.Set("Content-type", "text/calendar")
c.Response().Header.Set("charset", "utf-8") c.Response().Header.Set("charset", "utf-8")