See file here
See the discussion on this issue on Slack
Right now the Response is JSON dependent (end of the file):
return Response(
json.dumps(response.value, cls=ser.ArxivDocEncoder),
mimetype="application/json",
status=STATUS_CODES[response.type],
)