FHIR Chat · validate http status code · hapi

Stream: hapi

Topic: validate http status code


view this post on Zulip Patrick Werner (Dec 12 2019 at 11:19):

I just had a closer look at the validate operation an noticed that this should return 200 even if the validation results are containing errors. Hapi doesn't follow this logic, i think that's intentional? But shouldn't it be alligned with the FHIR spec?

view this post on Zulip James Agnew (Dec 12 2019 at 14:20):

Hmm yeah, I think this is a case of the spec changing from previous versions (i'm pretty sure it used to mandate a 422 on validation failure) and us not cathning up. We should definitely be returning 200 then (for R4+ only?)

view this post on Zulip Patrick Werner (Dec 12 2019 at 15:02):

just checked, was changed with STU3

view this post on Zulip Patrick Werner (Dec 12 2019 at 15:04):

https://github.com/jamesagnew/hapi-fhir/issues/1628


Last updated: Apr 12 2022 at 19:14 UTC