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 5xx/4xx status code and print the reason in logs for CodecException [SPR-15355] #19918

Closed
spring-projects-issues opened this issue Mar 17, 2017 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Mar 17, 2017

Sébastien Deleuze opened SPR-15355 and commented

CodecException handling should be handled in a consistent way between functional and annotation-based APIs. They should return by default 4xx status code for decoding error and 5xx for encoding error + should print the error reason in logs without the full stack trace. That would improve significantly the development experience.


Issue Links:

Referenced from: commits d098a4b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants