You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Alexander Shorin (JIRA)" <ji...@apache.org> on 2015/10/22 23:31:27 UTC

[jira] [Resolved] (COUCHDB-2661) Gracefully handle not acceptable methods

     [ https://issues.apache.org/jira/browse/COUCHDB-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Shorin resolved COUCHDB-2661.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Fixed with [70377d5|https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=70377d5].

> Gracefully handle not acceptable methods
> ----------------------------------------
>
>                 Key: COUCHDB-2661
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2661
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: HTTP Interface
>            Reporter: Alexander Shorin
>            Assignee: Alexander Shorin
>             Fix For: 2.0.0
>
>
> 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:
> {code}
> $ 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
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)