We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dcfc53 commit d703a85Copy full SHA for d703a85
pkg/webhook/admission/http.go
@@ -83,7 +83,7 @@ func (wh *Webhook) ServeHTTP(w http.ResponseWriter, r *http.Request) {
83
if limitedReader.N <= 0 {
84
err := fmt.Errorf("request entity is too large; limit is %d bytes", maxRequestSize)
85
wh.getLogger(nil).Error(err, "unable to read the body from the incoming request; limit reached")
86
- wh.writeResponse(w, Errored(http.StatusBadRequest, err))
+ wh.writeResponse(w, Errored(http.StatusRequestEntityTooLarge, err))
87
return
88
}
89
0 commit comments