Skip to content

Commit dd9ac2b

Browse files
author
Max Hniebergall
committed
Update RestStatus to conflict
1 parent 190a432 commit dd9ac2b

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/results

1 file changed

+1
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/results/ResultUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class ResultUtils {
1515
public static ElasticsearchStatusException createInvalidChunkedResultException(String expectedResultName, String receivedResultName) {
1616
return new ElasticsearchStatusException(
1717
"Received incompatible results. Check that your model_id matches the task_type of this endpoint. Expected chunked output of type [{}] but received [{}].",
18-
RestStatus.INTERNAL_SERVER_ERROR,
18+
RestStatus.CONFLICT,
1919
expectedResultName,
2020
receivedResultName
2121
);

0 commit comments

Comments
 (0)