{"action":"created","issue":{"url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/21","repository_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec","labels_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/21/comments","events_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/21/events","html_url":"https://github.com/stormpath/stormpath-framework-spec/issues/21","id":123714817,"number":21,"title":"Define the response codes for unsupported media type","user":{"login":"bretterer","id":1906920,"avatar_url":"https://avatars.githubusercontent.com/u/1906920?v=3","gravatar_id":"","url":"https://api.github.com/users/bretterer","html_url":"https://github.com/bretterer","followers_url":"https://api.github.com/users/bretterer/followers","following_url":"https://api.github.com/users/bretterer/following{/other_user}","gists_url":"https://api.github.com/users/bretterer/gists{/gist_id}","starred_url":"https://api.github.com/users/bretterer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretterer/subscriptions","organizations_url":"https://api.github.com/users/bretterer/orgs","repos_url":"https://api.github.com/users/bretterer/repos","events_url":"https://api.github.com/users/bretterer/events{/privacy}","received_events_url":"https://api.github.com/users/bretterer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-23T19:54:25Z","updated_at":"2016-02-25T19:02:56Z","closed_at":null,"body":"During the setup of the Produces in the framework, we define what we should allow in the Accept method but do not define the error codes to return if it is outside this.  \r\n\r\nWe need to define in the spec what error codes to return when.  The one I am talking about here would return in my opinion a 406 Not Acceptable error code."},"comment":{"url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/comments/188932200","html_url":"https://github.com/stormpath/stormpath-framework-spec/issues/21#issuecomment-188932200","issue_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/21","id":188932200,"user":{"login":"lhazlewood","id":121180,"avatar_url":"https://avatars.githubusercontent.com/u/121180?v=3","gravatar_id":"","url":"https://api.github.com/users/lhazlewood","html_url":"https://github.com/lhazlewood","followers_url":"https://api.github.com/users/lhazlewood/followers","following_url":"https://api.github.com/users/lhazlewood/following{/other_user}","gists_url":"https://api.github.com/users/lhazlewood/gists{/gist_id}","starred_url":"https://api.github.com/users/lhazlewood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhazlewood/subscriptions","organizations_url":"https://api.github.com/users/lhazlewood/orgs","repos_url":"https://api.github.com/users/lhazlewood/repos","events_url":"https://api.github.com/users/lhazlewood/events{/privacy}","received_events_url":"https://api.github.com/users/lhazlewood/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T19:02:56Z","updated_at":"2016-02-25T19:02:56Z","body":"I should note that my answer above is based on the latest/current version of the HTTP spec, while the SO answer references the old RFC 2616.  I don't know if they differ, but I chose to avoid the old reference and focus only on RFC 7231."}}