Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / lib / controller / router / request.go
index cc6379486893742ff1f9464fcc8c62b1b5f8add7..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{}{}
 
@@ -163,10 +167,16 @@ var intParams = map[string]bool{
 }
 
 var boolParams = map[string]bool{
-       "distinct":             true,
-       "ensure_unique_name":   true,
-       "include_trash":        true,
-       "include_old_versions": true,
+       "distinct":                true,
+       "ensure_unique_name":      true,
+       "include_trash":           true,
+       "include_old_versions":    true,
+       "redirect_to_new_user":    true,
+       "send_notification_email": true,
+       "bypass_federation":       true,
+       "recursive":               true,
+       "exclude_home_project":    true,
+       "no_forward":              true,
 }
 
 func stringToBool(s string) bool {