Skip to content

Preserve failure nf status set by recordFinalError in buildZuulHttpResponse#2131

Open
lindseyreynolds wants to merge 1 commit into
masterfrom
lindseyr/proxy-endpoint-preserve-failure-status
Open

Preserve failure nf status set by recordFinalError in buildZuulHttpResponse#2131
lindseyreynolds wants to merge 1 commit into
masterfrom
lindseyr/proxy-endpoint-preserve-failure-status

Conversation

@lindseyreynolds
Copy link
Copy Markdown
Contributor

When origin.recordFinalError() sets a specific failure StatusCategory (e.g. from an origin subclass override), the subsequent unconditional setStatusCategory call was overwriting it with the generic status derived from the response code.

This PR switches to use storeStatusCategoryIfNotAlreadyFailure so that a failure status set by recordFinalError is never overwritten.

When origin.recordFinalError() sets a specific failure StatusCategory
(e.g. from a subclass override), the subsequent unconditional
setStatusCategory call was overwriting it with the generic status
derived from the response code. Switch to storeStatusCategoryIfNotAlreadyFailure
so that a failure status set by recordFinalError is never clobbered.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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