aboutsummaryrefslogtreecommitdiff
path: root/internal/api/health.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/health.go')
-rw-r--r--internal/api/health.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/api/health.go b/internal/api/health.go
index 61d5185..814fef5 100644
--- a/internal/api/health.go
+++ b/internal/api/health.go
@@ -20,10 +20,6 @@ func (s *Server) handleHealth(
}
if err := json.NewEncoder(w).Encode(response); err != nil {
- http.Error(
- w,
- http.StatusText(http.StatusInternalServerError),
- http.StatusInternalServerError,
- )
+ writeError(w, http.StatusInternalServerError, "failed to encode response")
}
}