query endpoints should respond with content type text/plain