Invalid JSON body for status code 404

Jim Larson 1 Reputation point
2024-12-31T17:05:12.0533333+00:00

Scenario:

DI4 2024-11-30 and DI3.1 2023-07-31.

Result id that doesn't exist is used with analyzeResults endpoint. Status code 404, NotFound is returned. Expect JSON response body conforming to ErrorResponse per

Error Guide

Responses

Actual response body is:

{"code":"NotFound","message":"Analyze result does not exist."}

Response is Error instead of ErrorResponse. I have tests and other code that suggest ErrorResponse was returned at some point in the past. I believe this is an undocumented behavior change or a bug.

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,846 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.