api-server
api-server copied to clipboard
FHIR `read` on non-existing resource returns 404 with HTML
I'm getting the following response with this call (but would expect an OperationOutcome in JSON):
curl -H "Accept: application/json+fhir" https://fhir-open-api-dstu2.smarthealthit.org/Patient/xxx
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /WEB-INF/grails-app/views/api/read.jsp. Reason:
<pre> Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html>