couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <>
Subject [jira] [Created] (COUCHDB-2661) Gracefully handle not acceptable methods
Date Mon, 13 Apr 2015 14:08:12 GMT
Alexander Shorin created COUCHDB-2661:

             Summary: Gracefully handle not acceptable methods
                 Key: COUCHDB-2661
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: HTTP Interface
            Reporter: Alexander Shorin

This is meta issue about to check all the endpoints that they are able to return 405 for non
acceptable method instead of 500 like what `/_membership` is doing for instance:

$ http PUT http://localhost:15984/_membership
HTTP/1.1 500 Internal Server Error
Cache-Control: must-revalidate
Content-Length: 70
Content-Type: application/json
Date: Mon, 13 Apr 2015 13:05:48 GMT
Server: CouchDB/2f615da (Erlang OTP/17)
X-Couch-Request-ID: 4fb974cb
X-Couch-Stack-Hash: 2050252024
X-CouchDB-Body-Time: 0

    "error": "unknown_error",
    "reason": "function_clause",
    "ref": 2050252024

This message was sent by Atlassian JIRA

View raw message