Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: discord webhook handles 204 (#16239)

p0ny0b53c733f951
diff --git a/backend/plugin/webhook/discord.go b/backend/plugin/webhook/discord.go
index 83cd2b90d0..536f7123b8 100644
--- a/backend/plugin/webhook/discord.go
+++ b/backend/plugin/webhook/discord.go
@@ -107,7 +107,7 @@ func (*DiscordReceiver) Post(context Context) error {
}
defer resp.Body.Close()
- if resp.StatusCode != http.StatusOK {
+ if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusNoContent {
return errors.Errorf("failed to POST webhook %s, status code: %d, response body: %s", context.URL, resp.StatusCode, b)
}