Send query error backtraces to API responses