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

feat(proxy): make error responses content type compliant with request header values #10366

Merged
merged 3 commits into from
Feb 28, 2023

Conversation

samugi
Copy link
Member

@samugi samugi commented Feb 24, 2023

Summary

Mostly based on: #7087. Ensure error messages are returned via kong.response.error when the proxy request is short-circuited, so that the output formats are compliant with the value of the Accept header.

Checklist

Full changelog

  • [Implement ...]

Issue reference

Fix #7093

KAG-723
KAG-750

@samugi samugi marked this pull request as draft February 24, 2023 10:33
@samugi samugi force-pushed the feat/kag-723-error-handling branch 2 times, most recently from 65e1887 to 8f83939 Compare February 24, 2023 11:21
@pull-request-size pull-request-size bot added size/M and removed size/S labels Feb 24, 2023
@samugi samugi changed the title feat(proxy): make error output format more consistent feat(proxy): error responses content type compliant with request header value Feb 24, 2023
@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 24, 2023
@samugi samugi marked this pull request as ready for review February 24, 2023 16:14
@samugi samugi changed the title feat(proxy): error responses content type compliant with request header value feat(proxy): make error responses content type compliant with request header values Feb 24, 2023
@samugi samugi marked this pull request as draft February 27, 2023 08:01
ensure error messages are returned via kong.response.error when the
proxy request is interrupted so that the output formats are compliant
with the value of the Accept header
@samugi samugi marked this pull request as ready for review February 27, 2023 09:10
@hanshuebner hanshuebner merged commit 0374343 into master Feb 28, 2023
@hanshuebner hanshuebner deleted the feat/kag-723-error-handling branch February 28, 2023 15:34
curiositycasualty pushed a commit that referenced this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error handling
2 participants