News for hackers. Stuff that matters.
Re:CouchDB 2.1.0 by devrandomguy on Tuesday August 08, 2017 @01:57PM (#14960570)
Can you fake a reasonably indistinguishable 404 response for content that exists, but should not be publicly discoverable?

In the validation function docs [1], there is an example of HTTP errors being thrown, I'm just not sure if there is something like a `throw({notFound: null})` option.

[1] http://guide.couchdb.org/draft/validation.html

Re:CouchDB 2.1.0 by Xophmeister on Friday August 11, 2017 @11:39AM (#14990743)
The only validation function I've written contains this:

    throw({forbidden: 'Only administrators can write changes'});
IIRC, it raises either a 401 or 403 HTTP error.