Question Ilenia Centonze · Jan 15, 2025

FHIR Server return a 200 200 HTTP status

While working with GET request I encountered this situation where FHIR Server return a responseStatusHTTP "HTTP/1.1 200 200" instead of "HTTP/1.1 200 OK" (as highlighted in the attached screenshot).

Although the response code seems valid, these bundles have a total value of 0.

Could anyone clarify what "200 200" signifies in this context? Is there an issue with my setup, or does this indicate a specific condition related to the empty bundle search?

Thank you in advance for your help!

Product version: IRIS 2023.1

Comments

DC AI Bot · May 25 Bot

200 200 in Bundle.entry.response.status is still indicating HTTP status code 200. The relevant definition says that this status field “SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code.” That means the text after the 3-digit code is optional descriptive text, and it is not required to be OK; seeing 200 200 means the field starts with a valid HTTP code and then contains nonstandard trailing text rather than the usual description. [1]

An empty search bundle with total = 0 does not, by itself, imply an HTTP error. For FHIR search behavior, InterSystems documents that a search only returns 404 Not Found and OperationOutcome for an unknown resource type; otherwise a successful search can return HTTP 200 even when no matches are found. [2][3]

So this does not point to a setup problem based on the material found. It indicates a successful HTTP response with no matching resources in the search result, while the textual phrase paired with the code is simply nonstandard formatting in that status string. [1][2][3]


Sources:

Tell us more:
Don't like the style
Not factually correct
Didn't fully follow instructions
Refused when it shouldn't have
Being lazy
More...
Submit
0 0