[ 
https://issues.apache.org/jira/browse/COUCHDB-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739804#action_12739804
 ] 

Jason Davies commented on COUCHDB-453:
--------------------------------------

I meant the first.  However, I didn't realise that Chris had originally 
intended to return a 406 response, which upon reflection is the preferred 
solution as you point out.  It just wasn't working properly and sent a 500 
"render_error" instead.  He has now fixed it and it returns a 406, so I think 
we are all in agreement now.  Thanks for your attention to detail!

> If "Accept: foo" header is sent, server returns a render_error
> --------------------------------------------------------------
>
>                 Key: COUCHDB-453
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-453
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>            Reporter: Jason Davies
>         Attachments: render.js.patch
>
>
> The full error is: {"error":"render_error","reason":"function raised error: 
> [object Object]"}
> This occurs because there is no match for the "foo" mime type.  Simple patch 
> to follow that makes us fall back to sending the first mime type provided.  
> "Be conservative in what you send, liberal in what you accept".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to