Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / lib / controller / router / request.go
index eae9e0a8cebc974dca813bba3dfa8f03381bbf2e..31f2e1d7baf5098a377ffe9d1acd7b737958231d 100644 (file)
@@ -63,7 +63,11 @@ func guessAndParse(k, v string) (interface{}, error) {
 func (rtr *router) loadRequestParams(req *http.Request, attrsKey string) (map[string]interface{}, error) {
        err := req.ParseForm()
        if err != nil {
-               return nil, httpError(http.StatusBadRequest, err)
+               if err.Error() == "http: request body too large" {
+                       return nil, httpError(http.StatusRequestEntityTooLarge, err)
+               } else {
+                       return nil, httpError(http.StatusBadRequest, err)
+               }
        }
        params := map[string]interface{}{}
 
@@ -172,6 +176,7 @@ var boolParams = map[string]bool{
        "bypass_federation":       true,
        "recursive":               true,
        "exclude_home_project":    true,
+       "no_forward":              true,
 }
 
 func stringToBool(s string) bool {