From f09a8bb1b65832ec6e6e34f8f3e09d7419fd5e2a Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Wed, 23 Aug 2017 16:33:40 +0200 Subject: [PATCH] agent: use http.StatusRequestEntityTooLarge instead of 413 --- agent/kvs_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/kvs_endpoint.go b/agent/kvs_endpoint.go index 1056b40a9a..4701195fb2 100644 --- a/agent/kvs_endpoint.go +++ b/agent/kvs_endpoint.go @@ -184,7 +184,7 @@ func (s *HTTPServer) KVSPut(resp http.ResponseWriter, req *http.Request, args *s // Check the content-length if req.ContentLength > maxKVSize { - resp.WriteHeader(413) + resp.WriteHeader(http.StatusRequestEntityTooLarge) // 413 fmt.Fprintf(resp, "Value exceeds %d byte limit", maxKVSize) return nil, nil }