Skip to content

Commit 307a6a7

Browse files
authored
Rename exception type header (#133045)
The exception type header was recently added, but the proxy decided to use a more generic header name that could apply across Elastic apps. This commit renames the header to match that generic name.
1 parent 50f9e06 commit 307a6a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/ElasticsearchException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public class ElasticsearchException extends RuntimeException implements ToXConte
118118
private static final String ROOT_CAUSE = "root_cause";
119119

120120
static final String TIMED_OUT_HEADER = "X-Timed-Out";
121-
static final String EXCEPTION_TYPE_HEADER = "X-Elasticsearch-Exception";
121+
static final String EXCEPTION_TYPE_HEADER = "X-Elastic-App-Exception";
122122

123123
private static final Map<Integer, CheckedFunction<StreamInput, ? extends ElasticsearchException, IOException>> ID_TO_SUPPLIER;
124124
private static final Map<Class<? extends ElasticsearchException>, ElasticsearchExceptionHandle> CLASS_TO_ELASTICSEARCH_EXCEPTION_HANDLE;

0 commit comments

Comments
 (0)