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

Response body for content type error #276

Conversation

TylerPachal
Copy link
Contributor

This PR adds a response body with a helpful error message when a request is rejected because of an invalid content-type header.

Because the JSONAPI.ContentTypeNegotiation has no logging, and was returning an empty body, it can be non-obvious to you and your users why their requests are being rejected with a 415.

@TylerPachal TylerPachal requested a review from a team as a code owner November 28, 2022 19:58
Copy link
Member

@mattpolzin mattpolzin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Can you merge master into this branch to kick CI off again? We had CI break temporarily but it should be working again now.

@doomspork
Copy link
Member

@mattpolzin merged in master and CI is running for this now. Feel free to merge if it's all green 👍

@mattpolzin mattpolzin merged commit 469f6ec into beam-community:master Dec 28, 2022
@TylerPachal TylerPachal deleted the response-body-for-content-type-error branch December 31, 2022 16:04
@TylerPachal
Copy link
Contributor Author

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants