Github user kxepal commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/221#discussion_r96643313 --- Diff: src/couch_httpd_misc_handlers.erl --- @@ -129,7 +129,9 @@ handle_uuids_req(#httpd{method='GET'}=Req) -> Max = list_to_integer(config:get("uuids","max_count","1000")), Count = try list_to_integer(couch_httpd:qs_value(Req, "count", "1")) of N when N > Max -> - throw({forbidden, <<"count parameter too large">>}); + throw({bad_request, <<"count parameter too large">>}); + N when N < 0 -> + throw({bad_request, <<"count must be a positive integer">>}); --- End diff -- May be also edit line 138 to note that we want positive integer, not just an integer?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---