Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 18164 invoked from network); 3 Sep 2010 12:52:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Sep 2010 12:52:56 -0000 Received: (qmail 10345 invoked by uid 500); 3 Sep 2010 12:52:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 10013 invoked by uid 500); 3 Sep 2010 12:52:51 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 9974 invoked by uid 99); 3 Sep 2010 12:52:50 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Sep 2010 12:52:50 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of czinkos@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Sep 2010 12:52:27 +0000 Received: by qyk34 with SMTP id 34so3808303qyk.11 for ; Fri, 03 Sep 2010 05:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=G79VutiC5I8WSfQANiLfc9i8qPm1ivg0CLEDCefz5v4=; b=lxj6jRiqSIjYnhfzfZblMMZkEmm6yut+gZx+XT1YsSqbeuNrb92dmtrsEC1NvqMJQR /maDsSp98sSDTyx9FAu+G0cSUQD10UXL+RVcty2MsoLzMlL6fHvva3cXCY47r+d3RMLn lV3HwbGtdEIsBeDiyJNDHrXhZzhsil78F0XCY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=CXR1uvfA03gFmtCvvd15oruYp0ewhPMWNDdvBuAnEFmr7VRbUt6lEzNkf9cqX6XoDv oq3oAnUZ9XFpuzUoGIpiHYPBeEd5/RmBDnCkW57yPWCtNtHeoq1J6vZFo76cAiQ9O2vu nJih5z1+9idAaPhbtZlvAZ3BoaK6/KywhK/24= MIME-Version: 1.0 Received: by 10.224.110.193 with SMTP id o1mr1311068qap.298.1283518325975; Fri, 03 Sep 2010 05:52:05 -0700 (PDT) Received: by 10.229.39.148 with HTTP; Fri, 3 Sep 2010 05:52:05 -0700 (PDT) Date: Fri, 3 Sep 2010 14:52:05 +0200 Message-ID: Subject: return custom http status from Document Update Handlers From: Zsolt Czinkos To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello Can I return custom HTTP status from document update handlers? If I return "[null, 'Something bad happened.']", status 200 returned. If I throw an error, then status 500 returned. What if I'd like to return a 4xx status? Thanks for your patience. Zsolt