agent: use http.StatusRequestEntityTooLarge instead of 413

This commit is contained in:
Frank Schroeder 2017-08-23 16:33:40 +02:00 committed by Frank Schröder
parent bc5dc32c1d
commit f09a8bb1b6
1 changed files with 1 additions and 1 deletions

View File

@ -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
}