404 or 406 returned depending on format #443

gonzoyumo opened this Issue Jul 19, 2012 · 1 comment


None yet

3 participants


when trying go get info about a gem that is not found, different responses are returned depending on the format:

$ curl -I https://rubygems.org/api/v1/gems/wrong_name.xml
HTTP/1.1 406 Not Acceptable
$ curl -I https://rubygems.org/api/v1/gems/wrong_name.json
HTTP/1.1 404 Not Found
$curl -I https://rubygems.org/api/v1/gems/wrong_name.yaml
HTTP/1.1 406 Not Acceptable

I suggest to make this consistent and always return 404

fnichol commented Nov 4, 2012

Looking at this one, woot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment