|
@@ -14,8 +14,9 @@ public class ResultUtils {
|
|
|
|
|
|
public static ElasticsearchStatusException createInvalidChunkedResultException(String expectedResultName, String receivedResultName) {
|
|
|
return new ElasticsearchStatusException(
|
|
|
- "Expected a chunked inference [{}] received [{}]",
|
|
|
- RestStatus.INTERNAL_SERVER_ERROR,
|
|
|
+ "Received incompatible results. Check that your model_id matches the task_type of this endpoint. "
|
|
|
+ + "Expected chunked output of type [{}] but received [{}].",
|
|
|
+ RestStatus.CONFLICT,
|
|
|
expectedResultName,
|
|
|
receivedResultName
|
|
|
);
|