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

Merged
merged 11 commits into from
Jul 3, 2025

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
@rjernst
Copy link
Member Author

rjernst commented Jul 2, 2025

@elasticmachine update branch

@rjernst rjernst merged commit be63963 into elastic:main Jul 3, 2025
32 checks passed
@rjernst rjernst deleted the exception_type_header branch July 3, 2025 21:27
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.

4 participants