Skip to content

Annotation-error-decoder does not provide feign.Response object in @FeignExceptionConstructor #2504

Open
@aiwprton805

Description

@aiwprton805

I encountered a problem when trying to access both the ResponseBody and HTTP status in my @FeignExceptionConstructor. While I could create multiple exception classes for each HTTP status, my goal is to use a single default exception that can provide access to the ResponseBody AND feign.Response (HTTP status at least) in exception constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    spring-cloudIssues related to Spring Cloud OpenFeign

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions