diff --git a/lib/go/camli/httputil/httputil.go b/lib/go/camli/httputil/httputil.go index 8928027fd..decafd347 100644 --- a/lib/go/camli/httputil/httputil.go +++ b/lib/go/camli/httputil/httputil.go @@ -42,9 +42,8 @@ func ForbiddenError(conn http.ResponseWriter, errorMessage string, args ...inter fmt.Fprintf(conn, "

Forbidden

") } -func RequestEntityTooLargeError(conn http.ResponseWriter, errorMessage string, args ...interface{}) { - conn.WriteHeader(http.StatusForbidden) - log.Printf("Request entity is too large: %s", fmt.Sprintf(errorMessage, args...)) +func RequestEntityTooLargeError(conn http.ResponseWriter) { + conn.WriteHeader(http.StatusRequestEntityTooLarge) fmt.Fprintf(conn, "

Request entity is too large

") }