diff --git a/matrixbot.go b/matrixbot.go
index 17580610e9a3a79297e553a3a586a11b497b45d1..ede760a065c28c64ca8804d2a6d08a8ece988c98 100644
--- a/matrixbot.go
+++ b/matrixbot.go
@@ -72,9 +72,11 @@ func (bot *MatrixBot) HandleFunc(command string, handler func(bot *MatrixBot, no
 
 func (bot *MatrixBot) Serve(endpoint string) {
 	http.HandleFunc("/healthz", func(writer http.ResponseWriter, request *http.Request) {
+		writer.WriteHeader(200)
 		_, _ = io.WriteString(writer, "OK\n")
 	})
 	http.HandleFunc("/_matrix/push/v1/notify", func(writer http.ResponseWriter, request *http.Request) {
+		log.Println("Received push notification")
 		notification, err := api.ParseNotification(request.Body)
 		if err != nil {
 			log.Println(err.Error())
@@ -99,6 +101,7 @@ func (bot *MatrixBot) Serve(endpoint string) {
 			log.Println(err.Error())
 			return
 		}
+		writer.WriteHeader(204)
 	})
 	log.Fatal(http.ListenAndServe(endpoint, nil))
 }