Skip to content

Add exception type response header for 5xx errors #130226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Jun 27, 2025

There are only a handful of relevant 5xx http error codes. Yet distinguishing errors can be important for debugging large numbers of errors. This commit adds a new X-Elasticsearch-Exception response header to 5xx error responses which contains the class name of the Java exception.

There are only a handful of relevant 5xx http error codes. Yet
distinguishing errors can be important for debugging large numbers of
errors. This commit adds a new `X-Elasticsearch-Exception` response
header to 5xx error responses which contains the class name of the Java
exception.
@rjernst rjernst added :Core/Infra/Core Core issues without another label >refactoring labels Jun 27, 2025
@rjernst rjernst requested a review from DaveCTurner June 27, 2025 15:27
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v9.2.0 labels Jun 27, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rjernst rjernst enabled auto-merge (squash) June 27, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >refactoring Team:Core/Infra Meta label for core/infra team v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants