Skip to content

Provide mappings and ExtractingResponseErrorHandler configuration for ErrorAttributes responses #12837

Open
@DanielThomas

Description

@DanielThomas

The new ExtractingResponseErrorHandler is a huge help when configuring RestTemplate to handle the standard error attributes returned by a Spring Boot service, but still requires implementing logic to convert those responses.

An ErrorAttributes message converter and a subclass of ExtractingResponseErrorHandler and perhaps even a convenience method on RestTemplateBuilder would help immensely in providing RestTemplate configuration that works better out of the box with Boot services.

In this particular case, we have server errors including the stacktraces, and it means we can surface the exception on the client with the server error nested (similar to suppressed exception output).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions