diff --git a/coderd/notifications.go b/coderd/notifications.go index 97cab982bdf20..812d8cd3e450b 100644 --- a/coderd/notifications.go +++ b/coderd/notifications.go @@ -210,7 +210,7 @@ func (api *API) postTestNotification(rw http.ResponseWriter, r *http.Request) { return } - httpapi.Write(ctx, rw, http.StatusOK, nil) + rw.WriteHeader(http.StatusNoContent) } // @Summary Get user notification preferences diff --git a/codersdk/notifications.go b/codersdk/notifications.go index 560499a67227f..ac5fe8e60bce1 100644 --- a/codersdk/notifications.go +++ b/codersdk/notifications.go @@ -200,10 +200,9 @@ func (c *Client) PostTestNotification(ctx context.Context) error { } defer res.Body.Close() - if res.StatusCode != http.StatusOK { + if res.StatusCode != http.StatusNoContent { return ReadBodyAsError(res) } - return nil } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy