New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return HTTP 406 when Accept is unsatisfiable #832

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@acdha
Copy link
Contributor

acdha commented Feb 21, 2013

When the request includes a specific Accept list and the serializer does not
support any of the requested formats, it's appropriate to return an HTTP 406
Not Acceptable response.

As part of this patch, Api.wrap_view now handles ImmediateHttpResponse
exceptions as expected for consistency with behaviour in Resource methods.

Return HTTP 406 when Accept is unsatisfiable
When the request includes a specific Accept list and the serializer does
not support any of the requested formats, it's appropriate to return an
HTTP 406 Not Acceptable response.

As part of this patch, Api.wrap_view now handles ImmediateHttpResponse
exceptions as expected for consistency with behaviour in Resource
methods.
@andrewaustin

This comment has been minimized.

Copy link
Contributor

andrewaustin commented Feb 24, 2013

Looks good to me.

@acdha acdha closed this in 905ae88 Mar 19, 2013

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