From f4df46080e3b40c651137c9639ee1b3f87f587aa Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 8 Oct 2019 02:35:51 -0400 Subject: [PATCH] return a teapot for sig errors --- web.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web.go b/web.go index cdbc876..98ac8d2 100644 --- a/web.go +++ b/web.go @@ -293,6 +293,7 @@ func inbox(w http.ResponseWriter, r *http.Request) { os.Stdout.Write(payload) io.WriteString(os.Stdout, "\n") } + http.Error(w, "what did you call me?", http.StatusTeapot) return } what, _ := j.GetString("type")