Skip to content

Return 5xx/4xx status code and print the reason in logs for CodecException [SPR-15355] #19918

Closed

Description

@spring-projects-issues

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

Activity

  1. added
    type: enhancement
    in: web
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions