OpenFeign / OpenFeign/feign

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

Open
#2,504 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

spring-cloud
Dominant language
Java
Stars
9.8k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
41

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the annotation-error-decoder and @FeignExceptionConstructor, but no files or tests. Start by locating those entry points and tracing how ResponseBody and HTTP status reach exception constructors. Done means a single default exception can access both the response body and feign.Response, with coverage for the constructor behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.