anchor.diff:  parse_validate_replicas_number(NumReplicas) ->
       case menelaus_util:parse_validate_number(NumReplicas, 0, undefined) of
           invalid ->
  -            {error, replicaNumber, <<"The replica number must be specified and must be an integer between 1 and 3.">>};
  +            {error, replicaNumber, <<"The replica number must be specified and must be a non-negative integer.">>};
           too_small ->
               {error, replicaNumber, <<"The replica number cannot be negative.">>};
           {ok, X} -> {ok, num_replicas, X}
  
positive.code:         TotalErrors =:= [] ->
              {ok, OKs, JSONSummaries};
          true ->
              {errors, TotalErrors, JSONSummaries}
      end.
  
  basic_bucket_params_screening(IsNew, BucketName, Params, AllBuckets) ->
  
negative.code:                     %% if this happens then our validation raced, so repeat everything
                      handle_bucket_update_inner(BucketId, Req, Params, Limit-1)
              end;
          {true, {ok, ParsedProps, JSONSummaries}} ->
              FinalErrors = perform_warnings_validation(ParsedProps, []),
              reply_json(Req, {struct, [{errors, {struct, FinalErrors}},
                                        {summaries, {struct, JSONSummaries}}]},
                         case FinalErrors of
                             [] -> 202;
                             _ -> 400
                         end)
      end.
  
  do_bucket_create(Name, ParsedProps) ->
  