diff --git a/plugin/skel/listener.go b/plugin/skel/listener.go index 2b4deb71..afe0584e 100644 --- a/plugin/skel/listener.go +++ b/plugin/skel/listener.go @@ -265,6 +265,7 @@ func sendError(w http.ResponseWriter, msg string, code int) { } func errorResponse(w http.ResponseWriter, fmtString string, item ...interface{}) { + w.WriteHeader(http.StatusInternalServerError) json.NewEncoder(w).Encode(map[string]string{ "Err": fmt.Sprintf(fmtString, item...), })