Skip to content

Conversation

@iamsb97
Copy link
Contributor

@iamsb97 iamsb97 commented Oct 21, 2025

Addresses #11780.

Changes:

  1. Added a new configuration property exception-on-404-status to control whether an HTTP client throws an exception or returns null when a 404 status is received.
  2. Introduced a new interface ConfiguredHttpClient that exposes the HttpClientConfiguration associated with an individual client instance. This allows HttpClientIntroductionAdvice to access the client’s configuration in order to respect the new exception-on-404-status setting.
  3. The default value for the new property is false, preserving existing behavior for backward compatibility.

@iamsb97 iamsb97 marked this pull request as ready for review October 26, 2025 17:29
@iamsb97 iamsb97 changed the title Make 404 error code respect exception-on-error-status config property Allow 404 error code to throw exception for declarative clients Oct 27, 2025
@iamsb97
Copy link
Contributor Author

iamsb97 commented Oct 27, 2025

@graemerocher, please review this when you get a chance. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant