get_data generic method doesn't return an non-200 HTTP code on error
The error case does not return an error HTTP code (will return a 200). It relies on a differently formatted JSON instead of an error code.
In /app/api/routes/data/api.py line 161
else:
response = Response(
content=json.dumps({"message": "entity has no bulk data"}),
media_type=CustomMimeTypes.JSON.type,
)