Github user kxepal commented on the pull request:
https://github.com/apache/couchdb-chttpd/pull/33#issuecomment-95554589
Example:
```
$ echo '{"docs": [{"id": "good-doc"}, \
{"id": "_bad-doc"}, \
{"id": "non-existed-doc"}, \
{"id": "good-doc", "rev": "1-badrev"}, \
{"_id": "typo"}, \
{"id": "good-doc", "atts_since": ["bad-atts-since"]}, \
{"id": "good-doc", "atts_since": "wtf"}]}'\
| http 'http://localhost:15984/test/_bulk_get?revs=true'
HTTP/1.1 200 OK
Cache-Control: must-revalidate
Content-Type: application/json
Date: Thu, 23 Apr 2015 11:30:50 GMT
Server: CouchDB/42c9047 (Erlang OTP/17)
Transfer-Encoding: chunked
X-Couch-Request-ID: c063fcc5
X-CouchDB-Body-Time: 0
{
"results": [
{
"docs": [
{
"ok": {
"_id": "good-doc",
"_rev": "1-967a00dff5e02add41819138abb3284d",
"_revisions": {
"ids": [
"967a00dff5e02add41819138abb3284d"
],
"start": 1
}
}
}
],
"id": "good-doc"
},
{
"docs": [
{
"error": {
"error": "bad_request",
"id": "_bad-doc",
"reason": "Only reserved document ids may start
with underscore.",
"rev": null
}
}
],
"id": "_bad-doc"
},
{
"docs": [
{
"error": {
"error": "not_found",
"id": "non-existed-doc",
"reason": "missing",
"rev": "undefined"
}
}
],
"id": "non-existed-doc"
},
{
"docs": [
{
"error": {
"error": "not_found",
"id": "good-doc",
"reason": "missing",
"rev": "1-badrev"
}
}
],
"id": "good-doc"
},
{
"docs": [
{
"error": {
"error": "bad_request",
"id": null,
"reason": "document id missed",
"rev": null
}
}
],
"id": null
},
{
"docs": [
{
"error": {
"error": "bad_request",
"id": "good-doc",
"reason": "Invalid rev format",
"rev": "bad-atts-since"
}
}
],
"id": "good-doc"
},
{
"docs": [
{
"error": {
"error": "bad_request",
"id": "good-doc",
"reason": "att_since value must be array of revs.",
"rev": "wtf"
}
}
],
"id": "good-doc"
}
]
}
```--- 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 [email protected] or file a JIRA ticket with INFRA. ---
