Skip to content

Add Precondition Failed http client error exception#36807

Open
dominik-kovacs wants to merge 1 commit into
spring-projects:mainfrom
dominik-kovacs:feature/precondition-failed-http-client-error
Open

Add Precondition Failed http client error exception#36807
dominik-kovacs wants to merge 1 commit into
spring-projects:mainfrom
dominik-kovacs:feature/precondition-failed-http-client-error

Conversation

@dominik-kovacs
Copy link
Copy Markdown

Add a dedicated HttpClientErrorException.PreconditionFailed subclass for HTTP 412 status code, consistent with the existing pattern for other 4xx status codes (NotFound, Gone, Conflict, etc.).

This allows callers to catch HttpClientErrorException.PreconditionFailed directly rather than inspecting the status code on a generic HttpClientErrorException.

Signed-off-by: Dominik Kovács <dominik.kovacs28@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants