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

Write HTTP response headers contributed by exceptions in WebFlux error handling #18831

Open
bclozel opened this issue Oct 31, 2019 · 0 comments
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Oct 31, 2019

As of spring-projects/spring-framework#23741, Spring Framework allows ResponseStatusException instances to contribute HTTP headers to the error response.

The current infrastructure with AbstractErrorWebExceptionHandler and DefaultErrorWebExceptionHandler allow for user extension but is causing some challenges:

  • it duplicates efforts with what's being done in Spring Framework, as it needs to handle error responses completely
  • it doesn't allow to easily let exceptions contribute to the actual response.

This issue is about catching up with spring-projects/spring-framework#23741, and also checking whether there is a way to improve the situation.

@bclozel bclozel added the type: enhancement A general enhancement label Oct 31, 2019
@bclozel bclozel added this to the 2.x milestone Oct 31, 2019
@philwebb philwebb modified the milestones: 2.x, 3.x Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants