Skip to content
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 Accept header when Bad Content Type is reported... #1655

Open
mgajda opened this issue Mar 6, 2023 · 1 comment
Open

Return Accept header when Bad Content Type is reported... #1655

mgajda opened this issue Mar 6, 2023 · 1 comment

Comments

@mgajda
Copy link

mgajda commented Mar 6, 2023

According to HTTP standard, when "Bad content type" is reported, we should send a list of accepted content types for the given address in Accept header.
This could be realized by a walk over the type with a given path.

This allows for content negotiation and speeds up debugging expectations of API servers:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation#the_accept_header

@mgajda
Copy link
Author

mgajda commented Mar 6, 2023

May be related to example in #1246.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant